nanomongo.errors

exception nanomongo.errors.NanomongoError[source]

Base nanomongo error

exception nanomongo.errors.ValidationError[source]

Raised when a field fails validation

exception nanomongo.errors.ExtraFieldError[source]

Raised when a document has an undefined field

exception nanomongo.errors.ConfigurationError[source]

Raised when a required value found to be not set during operation, or a Document class is registered more than once

exception nanomongo.errors.IndexMismatchError[source]

Raised when a defined index does not match defined fields

exception nanomongo.errors.UnsupportedOperation[source]

Raised when an unsupported opperation/parameters are used

exception nanomongo.errors.DBRefNotSetError[source]

Raised when a DBRef getter is called on not-set DBRef field