Last change
on this file since 8466 was
7865,
checked in by hudson, 14 years ago
|
Refactoring to clean up pylint errors.
|
File size:
1.0 KB
|
Line | |
---|
1 | """Exceptions used by ANUGA |
---|
2 | """ |
---|
3 | |
---|
4 | import exceptions |
---|
5 | |
---|
6 | class TitleError(exceptions.IOError): |
---|
7 | """ Incorrect header in a file. """ |
---|
8 | pass |
---|
9 | |
---|
10 | class ParsingError(exceptions.IOError): |
---|
11 | """ Could not parse a file. """ |
---|
12 | pass |
---|
13 | |
---|
14 | class ShapeError(exceptions.IOError): |
---|
15 | """ Pathological shape in data. """ |
---|
16 | pass |
---|
17 | |
---|
18 | class ANUGAError(Exception): |
---|
19 | """ Generic ANUGA error. """ |
---|
20 | def __init__(self, args=None): |
---|
21 | self.args = args |
---|
22 | |
---|
23 | class DataMissingValuesError(exceptions.Exception): |
---|
24 | """ Missing values in file. """ |
---|
25 | pass |
---|
26 | |
---|
27 | class DataFileNotOpenError(exceptions.Exception): |
---|
28 | """ File is not open. """ |
---|
29 | pass |
---|
30 | |
---|
31 | class DataTimeError(exceptions.Exception): |
---|
32 | """ Pathological time data. """ |
---|
33 | pass |
---|
34 | |
---|
35 | class DataDomainError(exceptions.Exception): |
---|
36 | """ Pathological domain. """ |
---|
37 | pass |
---|
38 | |
---|
39 | class NewQuantity(exceptions.Exception): |
---|
40 | """ Quantity used but not defined. """ |
---|
41 | pass |
---|
42 | |
---|
43 | class TitleValueError(exceptions.Exception): |
---|
44 | """ Title of data column in file has wrong value. """ |
---|
45 | pass |
---|
Note: See
TracBrowser
for help on using the repository browser.