Exceptions

Field Exceptions

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

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

exception mongoalchemy.exceptions.BadFieldSpecification

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

Document Exceptions

exception mongoalchemy.exceptions.DocumentException

Base for all document-related exceptions

exception mongoalchemy.exceptions.MissingValueException

Raised when a required field isn’t set

exception mongoalchemy.exceptions.ExtraValueException

Raised when a value is passed in with no corresponding field

exception mongoalchemy.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 mongoalchemy.exceptions.InvalidConfigException

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

Data Exceptions

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

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

Session Exceptions

exception mongoalchemy.exceptions.TransactionException

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

exception mongoalchemy.exceptions.SessionCacheException

Exception when an error has occured with the MA caching mechanism

Table Of Contents

Previous topic

Update Expressions

Next topic

Examples

This Page