Changeset 7865 for trunk/anuga_core/source/anuga/anuga_exceptions.py
- Timestamp:
- Jun 21, 2010, 11:26:20 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/anuga_exceptions.py
r7743 r7865 4 4 import exceptions 5 5 6 class TitleError(exceptions.IOError): pass 7 class ParsingError(exceptions.IOError): pass 8 class ShapeError(exceptions.IOError): pass 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 9 17 10 18 class ANUGAError(Exception): 19 """ Generic ANUGA error. """ 11 20 def __init__(self, args=None): 12 21 self.args = args 13 22 14 class DataMissingValuesError(exceptions.Exception): pass 15 class DataFileNotOpenError(exceptions.Exception): pass 16 class DataTimeError(exceptions.Exception): pass 17 class DataDomainError(exceptions.Exception): pass 18 class NewQuantity(exceptions.Exception): pass 19 class TitleValueError(exceptions.Exception): pass 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 TracChangeset
for help on using the changeset viewer.