Source code for asyncorm.exceptions

__all__ = (
    "AsyncOrmAppError",
    "AsyncOrmCommandError",
    "AsyncOrmConfigError",
    "AsyncormException",
    "AsyncOrmFieldError",
    "AsyncOrmMigrationError",
    "AsyncOrmModelDoesNotExist",
    "AsyncOrmModelError",
    "AsyncOrmMultipleObjectsReturned",
    "AsyncOrmQuerysetError",
    "AsyncOrmSerializerError",
    "AsyncormTransactionRollback",
)


[docs]class AsyncormException(Exception): pass
[docs]class AsyncormTransactionRollback(Exception): """Raised when we want to force a transaction rollback.""" pass
[docs]class AsyncOrmCommandError(AsyncormException): """Exceptions Raised when command errors""" pass
[docs]class AsyncOrmFieldError(AsyncormException): """Raised when there are field errors detected.""" pass
[docs]class AsyncOrmModelDoesNotExist(AsyncormException): """Raised when the object requested does not exist.""" pass
class AsyncOrmModelNotDefined(AsyncormException): """Raised when the model does not exist in the ORM.""" pass
[docs]class AsyncOrmModelError(AsyncormException): """Raised when there are model errors detected.""" pass
[docs]class AsyncOrmQuerysetError(AsyncormException): """Raised when there are queryset errors detected.""" pass
[docs]class AsyncOrmConfigError(AsyncormException): """Raised when there are configuration errors detected.""" pass
[docs]class AsyncOrmMigrationError(AsyncormException): """Raised when there are configuration errors detected.""" pass
[docs]class AsyncOrmMultipleObjectsReturned(AsyncormException): """Raised when there are model errors detected.""" pass
[docs]class AsyncOrmSerializerError(AsyncormException): """Raised when there are model errors detected.""" pass
[docs]class AsyncOrmAppError(AsyncormException): """Raised when there are class App or configuration errors detected.""" pass