Defined for DBAPI compatibility, but never raised by ``psycopg3``.
"""
+ __module__ = "psycopg3"
+
ErrorInfo = Union[None, PGresult, Dict[int, Optional[bytes]]]
This exception is guaranteed to be picklable.
"""
+ __module__ = "psycopg3"
+
def __init__(
self,
*args: Sequence[Any],
An error related to the database interface rather than the database itself.
"""
+ __module__ = "psycopg3"
+
class DatabaseError(Error):
"""
Exception raised for errors that are related to the database.
"""
+ __module__ = "psycopg3"
+
class DataError(DatabaseError):
"""
Examples may be division by zero, numeric value out of range, etc.
"""
+ __module__ = "psycopg3"
+
class OperationalError(DatabaseError):
"""
during processing, etc.
"""
+ __module__ = "psycopg3"
+
class IntegrityError(DatabaseError):
"""
An example may be a foreign key check failed.
"""
+ __module__ = "psycopg3"
+
class InternalError(DatabaseError):
"""
of sync, etc.
"""
+ __module__ = "psycopg3"
+
class ProgrammingError(DatabaseError):
"""
statement, wrong number of parameters specified, etc.
"""
+ __module__ = "psycopg3"
+
class NotSupportedError(DatabaseError):
"""
A method or database API was used which is not supported by the database,
"""
+ __module__ = "psycopg3"
+
class Diagnostic:
"""Details from a database error report."""