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.