SQLAlchemy 0.4 Documentation
- class ArgumentError()
- class AssertionError()
- class CircularDependencyError()
- class CompileError()
- class ConcurrentModificationError()
- class DBAPIError()
- class DataError()
- class DatabaseError()
- class DisconnectionError()
- class FlushError()
- class IntegrityError()
- class InterfaceError()
- class InternalError()
- class InvalidRequestError()
- class NoReferencedTableError()
- class NoSuchColumnError()
- class NoSuchTableError()
- class NotSupportedError()
- class OperationalError()
- class ProgrammingError()
- class SADeprecationWarning()
- class SAPendingDeprecationWarning()
- class SAWarning()
- class SQLAlchemyError()
- class TimeoutError()
- class UnboundExecutionError()
- class UnmappedColumnError()
module sqlalchemy.exceptions
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 ArgumentError()
Raised for all those conditions where invalid arguments are sent to constructed objects. This error generally corresponds to construction time state errors.
class AssertionError()
Corresponds to internal state being detected in an invalid state.
class CircularDependencyError()
Raised by topological sorts when a circular dependency is detected
class ConcurrentModificationError()
Raised when a concurrent modification condition is detected.
class DBAPIError()
Raised when the execution of a database operation fails.
DBAPIError wraps exceptions raised by the DB-API underlying the database operation. Driver-specific implementations of the standard DB-API exception types are wrapped by matching sub-types of SQLAlchemy's DBAPIError when possible. DB-API's Error type maps to DBAPIError in SQLAlchemy, otherwise the names are identical. Note that there is no guarantee that different DB-API implementations will raise the same exception type for any given error condition.
If the error-raising operation occured in the execution of a SQL statement, that statement and its parameters will be available on the exception object in the statement and params attributes.
The wrapped exception object is available in the orig attribute. Its type and properties are DB-API implementation specific.
Construct a new DBAPIError.
class DisconnectionError()
Raised within Pool when a disconnect is detected on a raw DB-API connection.
This error is consumed internally by a connection pool. It can be raised by a PoolListener so that the host pool forces a disconnect.
class InvalidRequestError()
SQLAlchemy was asked to do something it can't do, return nonexistent data, etc.
This error generally corresponds to runtime state errors.
class NoReferencedTableError()
Raised by ForeignKey when the referred Table cannot be located.
class NoSuchColumnError()
Raised by RowProxy when a nonexistent column is requested from a row.
class NoSuchTableError()
SQLAlchemy was asked to load a table's definition from the database, but the table doesn't exist.
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 UnmappedColumnError()
A mapper was asked to return mapped information about a column which it does not map
