Exceptions

Field Exceptions

exception ommongo.exceptions.BadValueException(name, value, reason, cause=None)

An exception which is raised when there is something wrong with a value

exception ommongo.exceptions.BadFieldSpecification

An exception that is raised when there is an error in creating a field

Document Exceptions

exception ommongo.exceptions.DocumentException

Base for all document-related exceptions

exception ommongo.exceptions.MissingValueException

Raised when a required field isn’t set

exception ommongo.exceptions.ExtraValueException

Raised when a value is passed in with no corresponding field

exception ommongo.exceptions.FieldNotRetrieved

If a partial document is loaded from the database and a field which wasn’t retrieved is accessed this exception is raised

exception ommongo.exceptions.InvalidConfigException

Raised when a bad value is passed in for a configuration that expects its values to obey certain constraints.

Data Exceptions

exception ommongo.exceptions.BadReferenceException
exception ommongo.exceptions.BadValueException(name, value, reason, cause=None)

An exception which is raised when there is something wrong with a value

Session Exceptions

exception ommongo.exceptions.TransactionException

Exception which occurs when an invalid operation is called during a transaction

exception ommongo.exceptions.SessionCacheException

Exception when an error has occured with the MA caching mechanism