class ObjectDeletedError(sa_exc.InvalidRequestError):
A refresh operation failed to retrieve the database row corresponding to an object's known primary key identity.
A refresh operation proceeds when an expired attribute is
accessed on an object, or when _query.Query.get
is
used to retrieve an object which is, upon retrieval, detected
as expired. A SELECT is emitted for the target row
based on primary key; if no row is returned, this
exception is raised.
The true meaning of this exception is simply that no row exists for the primary key identifier associated with a persistent object. The row may have been deleted, or in some cases the primary key updated to a new value, outside of the ORM's management of the target object.
Method | __init__ |
Undocumented |
Method | __reduce__ |
Undocumented |
Inherited from SQLAlchemyError
(via InvalidRequestError
):
Method | __str__ |
Undocumented |
Method | __unicode__ |
Undocumented |
Method | _message |
Undocumented |
Method | _sql_message |
Undocumented |
Inherited from HasDescriptionCode
(via InvalidRequestError
, SQLAlchemyError
):
Method | _code_str |
Undocumented |
Instance Variable | code |
Undocumented |