2012-02-25 11:30:03 +04:00
|
|
|
import exceptions
|
|
|
|
|
|
|
|
class Error(exceptions.StandardError):
|
|
|
|
pass
|
|
|
|
|
2013-05-31 11:05:53 +04:00
|
|
|
class DatabaseError(exceptions.StandardError):
|
2012-02-25 11:30:03 +04:00
|
|
|
pass
|
|
|
|
|
2013-05-31 11:05:53 +04:00
|
|
|
class Warning(exceptions.StandardError):
|
2012-02-25 11:30:03 +04:00
|
|
|
pass
|
|
|
|
|
2013-05-31 11:05:53 +04:00
|
|
|
class InterfaceError(Error):
|
2012-02-25 11:30:03 +04:00
|
|
|
pass
|
|
|
|
|
|
|
|
class InternalError(DatabaseError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class OperationalError(DatabaseError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class ProgrammingError(DatabaseError):
|
|
|
|
pass
|
|
|
|
|
2013-05-31 11:05:53 +04:00
|
|
|
class NotSupportedError(ProgrammingError):
|
2012-02-25 11:30:03 +04:00
|
|
|
pass
|
|
|
|
|
2013-05-31 11:05:53 +04:00
|
|
|
class IntegrityError(DatabaseError):
|
2012-02-25 11:30:03 +04:00
|
|
|
pass
|
|
|
|
|
2013-05-31 11:05:53 +04:00
|
|
|
class PartialCommitError(IntegrityError):
|
2012-02-25 11:30:03 +04:00
|
|
|
pass
|