class documentation

class StaleDataError(sa_exc.SQLAlchemyError):

View In Hierarchy

An operation encountered database state that is unaccounted for.

Conditions which cause this to happen include:

  • A flush may have attempted to update or delete rows and an unexpected number of rows were matched during the UPDATE or DELETE statement. Note that when version_id_col is used, rows in UPDATE or DELETE statements are also matched against the current known version identifier.
  • A mapped object with version_id_col was refreshed, and the version number coming back from the database does not match that of the object itself.
  • A object is detached from its parent object, however the object was previously attached to a different parent identity which was garbage collected, and a decision cannot be made if the new parent was really the most recent "parent".

Inherited from SQLAlchemyError:

Method __str__ Undocumented
Method __unicode__ Undocumented
Method ​_message Undocumented
Method ​_sql​_message Undocumented

Inherited from HasDescriptionCode (via SQLAlchemyError):

Method __init__ Undocumented
Method ​_code​_str Undocumented
Instance Variable code Undocumented