pyviblib.util.exceptions
index
/usr/lib/python2.4/site-packages/pyviblib/util/exceptions.py

Exceptions which are raised in pyviblib.
 
The following classes are exported :
    InvalidArgumentError   -- function received an invalid argument
    IOOperationError       -- input/output operations
    ConstructorError       -- constructor called with invalid arguments
    ParseError             -- errors by parsing
    WriteError             -- errors by writing
    DataInconsistencyError -- inconsistency in data found

 
Classes
       
exceptions.IOError(exceptions.EnvironmentError)
IOOperationError
ParseError
WriteError
exceptions.ValueError(exceptions.StandardError)
DataInconsistencyError
InvalidArgumentError
ConstructorError

 
class ConstructorError(InvalidArgumentError)
    Raised if the constructor of a class called with invalid arguments.
 
 
Method resolution order:
ConstructorError
InvalidArgumentError
exceptions.ValueError
exceptions.StandardError
exceptions.Exception

Methods defined here:
__init__(self, desc)
Constructor of the class.
 
Positional arguments :
desc -- description
__repr__(self)
Can be used to recreate an object with the same value.
__str__(self)
Details.

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class DataInconsistencyError(exceptions.ValueError)
    Raised when an inconsistency found in data.
 
 
Method resolution order:
DataInconsistencyError
exceptions.ValueError
exceptions.StandardError
exceptions.Exception

Methods defined here:
__init__(self, desc)
Constructor of the class.
 
Positional arguments :
desc -- description
__repr__(self)
Can be used to recreate an object with the same value.
__str__(self)
Details.

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class IOOperationError(exceptions.IOError)
    Raised when an error occurs by input/output operations.
 
 
Method resolution order:
IOOperationError
exceptions.IOError
exceptions.EnvironmentError
exceptions.StandardError
exceptions.Exception

Methods defined here:
__init__(self, filename, desc)
Constructor of the class.
 
Positional arguments :
filename -- file name where the exception occured
desc     -- description
__repr__(self)
Can be used to recreate an object with the same value.
__str__(self)
Details.

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class InvalidArgumentError(exceptions.ValueError)
    Raised when a function received an invalid argument.
 
 
Method resolution order:
InvalidArgumentError
exceptions.ValueError
exceptions.StandardError
exceptions.Exception

Methods defined here:
__init__(self, desc)
Constructor of the class.
 
Positional arguments :
desc -- description
__repr__(self)
Can be used to recreate an object with the same value.
__str__(self)
Details.

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class ParseError(IOOperationError)
    Raised when an error occurs by parsing.
 
 
Method resolution order:
ParseError
IOOperationError
exceptions.IOError
exceptions.EnvironmentError
exceptions.StandardError
exceptions.Exception

Methods defined here:
__init__(self, filename, desc)
Constructor of the class.
 
Positional arguments :
filename -- file name where the exception occured
desc     -- description
__repr__(self)
Can be used to recreate an object with the same value.
__str__(self)
Details.

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class WriteError(IOOperationError)
    Raised when an error occurs by writing.
 
 
Method resolution order:
WriteError
IOOperationError
exceptions.IOError
exceptions.EnvironmentError
exceptions.StandardError
exceptions.Exception

Methods defined here:
__init__(self, filename, desc)
Constructor of the class.
 
Positional arguments :
filename -- file name where the exception occured
desc     -- description
__repr__(self)
Can be used to recreate an object with the same value.
__str__(self)
Details.

Methods inherited from exceptions.Exception:
__getitem__(...)

 
Data
        __all__ = ['InvalidArgumentError', 'IOOperationError', 'ConstructorError', 'ParseError', 'WriteError', 'DataInconsistencyError']
__author__ = 'Maxim Fedorovsky'

 
Author
        Maxim Fedorovsky