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