Exceptions¶
-
exception
arez.
HTTPException
[source]¶ General exception raised by the
Endpoint
in cases where getting a response from the server wasn’t possible.Inherits from
ArezException
.-
cause
¶ The original exception cause. This is usually:
aiohttp.ClientResponseError
when the request results in an unhandled HTTP error.aiohttp.ClientConnectionError
when the request couldn’t complete due to connection problems.asyncio.TimeoutError
when the request times out.TypeError
orValueError
, in rare cases when the API is having some internal error.None
if the cause was unknown.
- Type
Optional[Exception]
-
-
exception
arez.
Private
[source]¶ The exception raised when trying to fetch information about a private player’s profile.
Inherits from
ArezException
.
-
exception
arez.
NotFound
[source]¶ The exception raised when trying to fetch information returned an empty response.
Inherits from
ArezException
.
The exception raised when the developer’s ID and authorization key provided were deemed invalid, and the API was unable to estabilish a session because of it.
Inherits from
ArezException
.
The exception raised when the Hi-Rez API is switched into emergency mode, returning
503: Service Unavailable
HTTP status code on all endpoints / methods, except the server status one. Generally means the API is currently down.Inherits from
ArezException
.
-
exception
arez.
LimitReached
[source]¶ The exception raised when you reach your daily limit of requests to the API.
Inherits from
ArezException
.