leaguemanager.lib.exceptions¶
Module Contents¶
API¶
- exception leaguemanager.lib.exceptions.LeagueManagerException(*args: Any, detail: str = '')¶
Bases:
ExceptionBase exception class for League Manager errors.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- detail: str¶
None
- __repr__() str¶
- __str__() str¶
- exception leaguemanager.lib.exceptions.PermissionDenied(*args: Any, detail: str = '')¶
Bases:
leaguemanager.lib.exceptions.LeagueManagerException,ValueErrorException raised for permission denied errors.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- exception leaguemanager.lib.exceptions.ApplicationClientError(*args: Any, detail: str = '')¶
Bases:
leaguemanager.lib.exceptions.LeagueManagerExceptionException raised for application client errors.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- exception leaguemanager.lib.exceptions.HTTPException(*args: Any, detail: str = '', status_code: int | None = None, headers: dict[str, str] | None = None, extra: dict[str, Any] | list[Any] | None = None)¶
Bases:
leaguemanager.lib.exceptions.LeagueManagerExceptionBase exception for HTTP error responses.
These exceptions carry information to construct an HTTP response.
Initialization
Initialize
HTTPException.Set
detailandargsif not provided.Args: *args: if
detailkwarg not provided, first arg should be error detail. detail: Exception details or message. Will default to args[0] if not provided. status_code: Exception HTTP status code. headers: Headers to set on the response. extra: An extra mapping to attach to the exception.- status_code: int¶
None
Exception status code.
- detail: str¶
None
Exception details or message.
- headers: dict[str, str] | None¶
None
Headers to attach to the response.
- extra: dict[str, Any] | list[Any] | None¶
None
An extra mapping to attach to the exception.
- __repr__() str¶
- __str__() str¶