Skip to content

repository_orm.exceptions

Store the repository-orm exceptions.

AutoIncrementError

Bases: Exception

Raised when the id_ auto increment repository feature fails.

Source code in repository_orm/exceptions.py
12
13
class AutoIncrementError(Exception):
    """Raised when the id_ auto increment repository feature fails."""

EntityNotFoundError

Bases: Exception

Raised when the search or retrieve of an entity fails.

Source code in repository_orm/exceptions.py
4
5
class EntityNotFoundError(Exception):
    """Raised when the search or retrieve of an entity fails."""

FileContentNotLoadedError

Bases: Exception

Raised when trying to access the content of a file that has not been loaded.

Source code in repository_orm/exceptions.py
16
17
class FileContentNotLoadedError(Exception):
    """Raised when trying to access the content of a file that has not been loaded."""

TooManyEntitiesError

Bases: Exception

Raised when more entities than expected where found.

Source code in repository_orm/exceptions.py
8
9
class TooManyEntitiesError(Exception):
    """Raised when more entities than expected where found."""

Last update: 2021-04-08