Ignore:
Timestamp:
Jun 21, 2010, 11:26:20 AM (12 years ago)
Author:
hudson
Message:

Refactoring to clean up pylint errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/anuga_exceptions.py

    r7743 r7865  
    44import exceptions
    55
    6 class TitleError(exceptions.IOError): pass
    7 class ParsingError(exceptions.IOError): pass
    8 class ShapeError(exceptions.IOError): pass
     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
    917
    1018class ANUGAError(Exception):
     19    """ Generic ANUGA error. """
    1120    def __init__(self, args=None):
    1221        self.args = args
    1322
    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
     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 TracChangeset for help on using the changeset viewer.