Errors
Exceptions raised when an error is encountered during API calls.
AccessError
¶
Bases: Exception
A class denoting an exception raised when required permission is not satisfied.
Attributes¶
required : str The required permission for a path route.
Source code in ravyapi/api/errors.py
BadRequestError
¶
Bases: HTTPError
A class denoting an exception raised when a bad request is made.
Attributes¶
exc_data : str | dict[str, Any] The error data returned by the Ravy API.
Source code in ravyapi/api/errors.py
ForbiddenError
¶
Bases: HTTPError
A class denoting an exception raised when a forbidden request is made.
Attributes¶
exc_data : str | dict[str, Any] The error data returned by the Ravy API.
Source code in ravyapi/api/errors.py
HTTPError
¶
Bases: Exception
A base class for all HTTP exceptions.
Parameters¶
status : int The HTTP status code of the response. exc_data : str | dict[str, Any] The error data returned by the Ravy API.
Attributes¶
status : int The HTTP status code of the response. exc_data : str | dict[str, Any] The error data returned by the Ravy API.
Source code in ravyapi/api/errors.py
exc_data: str | dict[str, Any]
property
¶
The error data returned by the Ravy API.
status: int
property
¶
The HTTP status code of the response.
__init__(status, exc_data)
¶
Parameters¶
status : int The HTTP status code of the response. exc_data : str | dict[str, Any] The error data returned by the Ravy API.
Source code in ravyapi/api/errors.py
NotFoundError
¶
Bases: HTTPError
A class denoting an exception raised when a resource is not found.
Attributes¶
exc_data : str | dict[str, Any] The error data returned by the Ravy API.
Source code in ravyapi/api/errors.py
TooManyRequestsError
¶
Bases: HTTPError
A class denoting an exception raised when a request is made too frequently.
Attributes¶
exc_data : str | dict[str, Any] The error data returned by the Ravy API.
Source code in ravyapi/api/errors.py
UnauthorizedError
¶
Bases: HTTPError
A class denoting an exception raised when an unauthorized request is made.
Attributes¶
exc_data : str | dict[str, Any] The error data returned by the Ravy API.