exceptions Module¶
- exception rom.exceptions.BulkError¶
Bases:
ORMErrorRaised when using session.commit(fast=True) or equivalent, and there is at least one error.
- exception rom.exceptions.ColumnError¶
Bases:
ORMErrorRaised when your column definitions are not correct
- exception rom.exceptions.DataRaceError¶
Bases:
InvalidOperationRaised when more than one writer tries to update the same columns on the same entity
- exception rom.exceptions.EntityDeletedError¶
Bases:
InvalidOperationRaised when another writer deleted the entity from Redis; use .save(force=True) to re-save
- exception rom.exceptions.InvalidColumnValue¶
Bases:
ColumnErrorRaised when you attempt to pass a primary key on entity creation or when data assigned to a column is the wrong type
- exception rom.exceptions.InvalidOperation¶
Bases:
ORMErrorRaised when trying to delete or modify a column that cannot be deleted or modified
- exception rom.exceptions.MissingColumn¶
Bases:
ColumnErrorRaised when a model has a required column, but it is not provided on construction
- exception rom.exceptions.ORMError¶
Bases:
ExceptionBase class for all ORM-related errors
- exception rom.exceptions.QueryError¶
Bases:
InvalidOperationRaised when arguments to
Model.get_by()orQuery.filterare not valid
- exception rom.exceptions.RestrictError¶
Bases:
InvalidOperationRaised when deleting an object referenced by other objects