exceptions
Application exceptions
Application exception types and their translation into HTTP error responses.
-
exception app.lib.exceptions.ApplicationError(*args: Any, detail: str = '')[source]
Bases: Exception
Base exception type for the lib’s custom exception types.
Initialize ApplicationError.
- Parameters:
*args – Messages, converted to str before passing to Exception. The first one
becomes detail when detail is not given.
detail – detail of the exception.
-
__init__(*args: Any, detail: str = '') → None[source]
Initialize ApplicationError.
- Parameters:
*args – Messages, converted to str before passing to Exception. The first one
becomes detail when detail is not given.
detail – detail of the exception.
-
exception app.lib.exceptions.AuthorizationError(*args: Any, detail: str = '')[source]
Bases: ApplicationClientError
A user tried to do something they shouldn’t have.
Initialize ApplicationError.
- Parameters:
*args – Messages, converted to str before passing to Exception. The first one
becomes detail when detail is not given.
detail – detail of the exception.