abstract_api.core.exceptions package#
Submodules#
Module contents#
- exception abstract_api.core.exceptions.APIRequestError(http_status: int, body: bytes, raised_error_message: str, message: str | None = None, code: str | None = None, details: dict[str, Any] | None = None)[source]#
Bases:
AbstractAPIExceptionRaised when there’s a problem with returned in API response.
- property body: bytes#
Response body.
- property code: str | None#
Error code returned from API.
- property details: dict[str, Any] | None#
Error details returned from API.
- property http_status: int#
HTTP status code.
- property message: str | None#
Error message returned from API.
- exception abstract_api.core.exceptions.AbstractAPIException[source]#
Bases:
ExceptionBase AbstractAPI library exception.
- exception abstract_api.core.exceptions.ClientRequestError[source]#
Bases:
AbstractAPIExceptionRaised when there’s a problem before making API request.
- exception abstract_api.core.exceptions.ResponseParseError[source]#
Bases:
AbstractAPIExceptionRaised when an attempt to parse a response body fails.