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

Last change on this file since 7865 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
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
23class DataMissingValuesError(exceptions.Exception):
24    """ Missing values in file. """
25    pass
26   
27class DataFileNotOpenError(exceptions.Exception):
28    """ File is not open. """
29    pass
30   
31class DataTimeError(exceptions.Exception):
32    """ Pathological time data. """
33    pass
34   
35class DataDomainError(exceptions.Exception):
36    """ Pathological domain. """
37    pass
38   
39class NewQuantity(exceptions.Exception):
40    """ Quantity used but not defined. """
41    pass
42   
43class 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.