Skip to content

Exceptions

All Edgy custom exceptions derive from the base EdgyException.

ObjectNotFound

Raised when querying a model instance and it does not exist.

from edgy.exceptions import ObjectNotFound

Or simply:

from edgy import ObjectNotFound

MultipleObjectsReturned

Raised when querying a model and returns multiple results for the given query result.

from edgy.exceptions import MultipleObjectsReturned

Or simply:

from edgy import MultipleObjectsReturned

ValidationError

Raised when a validation error is thrown.

from edgy.exceptions import ValidationError

Or simply:

from edgy import ValidationError

ImproperlyConfigured

Raised when misconfiguration in the models and metaclass is passed.

from edgy.exceptions import ImproperlyConfigured

Or simply:

from edgy import ImproperlyConfigured