Exceptions¶
-
exception
arez.HTTPException[source]¶ General exception raised by the
Endpointin cases where getting a response from the server wasn’t possible.Inherits from
ArezException.-
cause¶ The original exception cause. This is usually:
aiohttp.ClientResponseErrorwhen the request results in an unhandled HTTP error.aiohttp.ClientConnectionErrorwhen the request couldn’t complete due to connection problems.asyncio.TimeoutErrorwhen the request times out.TypeErrororValueError, in rare cases when the API is having some internal error.Noneif 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 UnavailableHTTP 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.