Exceptions used with SQLAlchemy.
The base exception class is .SQLAlchemyError
. Exceptions which are
raised as a result of DBAPI exceptions are all subclasses of
.DBAPIError
.
Class | AmbiguousForeignKeysError |
Raised when more than one foreign key matching can be located between two selectables during a join. |
Class | ArgumentError |
Raised when an invalid or conflicting function argument is supplied. |
Class | AwaitRequired |
Error raised by the async greenlet spawn if no async operation was awaited when it required one. |
Class | Base20DeprecationWarning |
Issued for usage of APIs specifically deprecated or legacy in SQLAlchemy 2.0. |
Class | CircularDependencyError |
Raised by topological sorts when a circular dependency is detected. |
Class | CompileError |
Raised when an error occurs during SQL compilation |
Class | DatabaseError |
Wraps a DB-API DatabaseError. |
Class | DataError |
Wraps a DB-API DataError. |
Class | DBAPIError |
Raised when the execution of a database operation fails. |
Class | DisconnectionError |
A disconnect is detected on a raw DB-API connection. |
Class | DontWrapMixin |
A mixin class which, when applied to a user-defined Exception class, will not be wrapped inside of .StatementError if the error is emitted within the process of executing a statement. |
Class | HasDescriptionCode |
helper which adds 'code' as an attribute and '_code_str' as a method |
Class | IdentifierError |
Raised when a schema name is beyond the max character limit |
Class | IntegrityError |
Wraps a DB-API IntegrityError. |
Class | InterfaceError |
Wraps a DB-API InterfaceError. |
Class | InternalError |
Wraps a DB-API InternalError. |
Class | InvalidatePoolError |
Raised when the connection pool should invalidate all stale connections. |
Class | InvalidRequestError |
SQLAlchemy was asked to do something it can't do. |
Class | LegacyAPIWarning |
indicates an API that is in 'legacy' status, a long term deprecation. |
Class | MissingGreenlet |
Error raised by the async greenlet await_ if called while not inside the greenlet spawn context. |
Class | MovedIn20Warning |
Subtype of RemovedIn20Warning to indicate an API that moved only. |
Class | MultipleResultsFound |
A single database result was required but more than one were found. |
Class | NoForeignKeysError |
Raised when no foreign keys can be located between two selectables during a join. |
Class | NoInspectionAvailable |
A subject passed to sqlalchemy.inspection.inspect produced no context for inspection. |
Class | NoReferencedColumnError |
Raised by ForeignKey when the referred Column cannot be located. |
Class | NoReferencedTableError |
Raised by ForeignKey when the referred Table cannot be located. |
Class | NoReferenceError |
Raised by ForeignKey to indicate a reference cannot be resolved. |
Class | NoResultFound |
A database result was required but none was found. |
Class | NoSuchColumnError |
A nonexistent column is requested from a Row. |
Class | NoSuchModuleError |
Raised when a dynamically-loaded module (usually a database dialect) of a particular name cannot be located. |
Class | NoSuchTableError |
Table does not exist or is not visible to a connection. |
Class | NotSupportedError |
Wraps a DB-API NotSupportedError. |
Class | ObjectNotExecutableError |
Raised when an object is passed to .execute() that can't be executed as SQL. |
Class | OperationalError |
Wraps a DB-API OperationalError. |
Class | PendingRollbackError |
A transaction has failed and needs to be rolled back before continuing. |
Class | ProgrammingError |
Wraps a DB-API ProgrammingError. |
Class | RemovedIn20Warning |
indicates an API that will be fully removed in SQLAlchemy 2.0. |
Class | ResourceClosedError |
An operation was requested from a connection, cursor, or other object that's in a closed state. |
Class | SADeprecationWarning |
Issued for usage of deprecated APIs. |
Class | SAPendingDeprecationWarning |
A similar warning as _exc.SADeprecationWarning , this warning is not used in modern versions of SQLAlchemy. |
Class | SAWarning |
Issued at runtime. |
Class | SQLAlchemyError |
Generic error class. |
Class | StatementError |
An error occurred during execution of a SQL statement. |
Class | TimeoutError |
Raised when a connection pool times out on getting a connection. |
Class | UnboundExecutionError |
SQL was attempted without a database connection to execute it on. |
Class | UnreflectableTableError |
Table exists but can't be reflected for some reason. |
Class | UnsupportedCompilationError |
Raised when an operation is not supported by the given compiler. |
Variable | _version_token |
Undocumented |