`0001"""dberrors: database exception classes for SQLObject.
0002
0003 These classes are dictated by the DB API v2.0, see:
0004 https://wiki.python.org/moin/DatabaseProgramming
0005"""
0006
0007from sqlobject.compat import PY2
0008
0009if not PY2:
0010 StandardError = Exception
0011
0012
0013class Error(StandardError):
0014 pass
0015
0016
0017class Warning(StandardError):
0018 pass
0019
0020
0021class InterfaceError(Error):
0022 pass
0023
0024
0025class DatabaseError(Error):
0026 pass
0027
0028
0029class InternalError(DatabaseError):
0030 pass
0031
0032
0033class OperationalError(DatabaseError):
0034 pass
0035
0036
0037class ProgrammingError(DatabaseError):
0038 pass
0039
0040
0041class IntegrityError(DatabaseError):
0042 pass
0043
0044
0045class DataError(DatabaseError):
0046 pass
0047
0048
0049class NotSupportedError(DatabaseError):
0050 pass
0051
0052
0053class DuplicateEntryError(IntegrityError):
0054 pass`