__title__ = 'starbase.exceptions'
__author__ = 'Artur Barseghyan'
__copyright__ = 'Copyright (c) 2013 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'BaseException', 'ImproperlyConfigured', 'InvalidArguments', 'ParseError', 'DoesNotExist',
'DatabaseError', 'IntegrityError'
)
[docs]class BaseException(Exception):
"""
Base exception.
"""
[docs]class InvalidArguments(ValueError, BaseException):
"""
Exception raised when invalid arguments supplied.
"""
[docs]class ParseError(BaseException):
"""
Raised if the request or response contain malformed data.
"""
[docs]class DatabaseError(BaseException):
"""
General database error, as defined in PEP249 interface.
"""
[docs]class DoesNotExist(DatabaseError):
"""
Does not exist.
"""
[docs]class IntegrityError(DatabaseError):
"""
Integrity error, as defined in PEP249 interface.
"""