source: trunk/anuga_core/source/anuga/anuga_exceptions.py @ 9487

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
4import exceptions
5
6class TitleError(exceptions.IOError):
7    """ Incorrect header in a file. """
8    pass
9
10class ParsingError(exceptions.IOError):
11    """ Could not parse a file. """
12    pass
13   
14class ShapeError(exceptions.IOError):
15    """ Pathological shape in data. """
16    pass
17
18class ANUGAError(Exception):
19    """ Generic ANUGA error. """
20    #def __init__(self, args=None):
21    #self.args = args
22    pass
23
24class DataMissingValuesError(exceptions.Exception):
25    """ Missing values in file. """
26    pass
27   
28class DataFileNotOpenError(exceptions.Exception):
29    """ File is not open. """
30    pass
31   
32class DataTimeError(exceptions.Exception):
33    """ Pathological time data. """
34    pass
35   
36class DataDomainError(exceptions.Exception):
37    """ Pathological domain. """
38    pass
39   
40class NewQuantity(exceptions.Exception):
41    """ Quantity used but not defined. """
42    pass
43   
44class 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.