Last change
on this file since 9487 was
8970,
checked in by steve, 11 years ago
|
Lots of changes, most important lowering the minimum allowed height
|
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 | pass |
---|
23 | |
---|
24 | class DataMissingValuesError(exceptions.Exception): |
---|
25 | """ Missing values in file. """ |
---|
26 | pass |
---|
27 | |
---|
28 | class DataFileNotOpenError(exceptions.Exception): |
---|
29 | """ File is not open. """ |
---|
30 | pass |
---|
31 | |
---|
32 | class DataTimeError(exceptions.Exception): |
---|
33 | """ Pathological time data. """ |
---|
34 | pass |
---|
35 | |
---|
36 | class DataDomainError(exceptions.Exception): |
---|
37 | """ Pathological domain. """ |
---|
38 | pass |
---|
39 | |
---|
40 | class NewQuantity(exceptions.Exception): |
---|
41 | """ Quantity used but not defined. """ |
---|
42 | pass |
---|
43 | |
---|
44 | class TitleValueError(exceptions.Exception): |
---|
45 | """ Title of data column in file has wrong value. """ |
---|
46 | pass |
---|
Note: See
TracBrowser
for help on using the repository browser.