Source code for nanomongo.errors

[docs]class NanomongoError(Exception): """Base nanomongo error"""
[docs]class ValidationError(NanomongoError): """Raised when a field fails validation"""
[docs]class ExtraFieldError(NanomongoError): """Raised when a document has an undefined field"""
[docs]class ConfigurationError(NanomongoError): """Raised when a required value found to be not set during operation, or a Document class is registered more than once """
[docs]class IndexMismatchError(NanomongoError): """Raised when a defined index does not match defined fields"""
[docs]class UnsupportedOperation(NanomongoError): """Raised when an unsupported opperation/parameters are used"""
[docs]class DBRefNotSetError(NanomongoError): """Raised when a DBRef getter is called on not-set DBRef field"""