Exceptions

exception arez.ArezException[source]

The base exception type for this entire package.

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:

Type

Optional[Exception]

description

A more detailed description of the error. This is usually an empty string, set only when the API is having some internal error.

Type

str

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.

exception arez.Unauthorized[source]

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.

exception arez.Unavailable[source]

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.