The possible exceptions thrown by the library.

exception brawlstats.errors.RequestError(code, message)[source]

The base class for all errors.

exception brawlstats.errors.Forbidden(code, url, message)[source]

Raised if your API Key is invalid.

exception brawlstats.errors.NotFoundError(code, **kwargs)[source]

Raised if an invalid player tag or club tag has been passed.

exception brawlstats.errors.RateLimitError(code, url)[source]

Raised when the rate limit is reached.

exception brawlstats.errors.UnexpectedError(url, code, text)[source]

Raised if an unknown error has occured.

exception brawlstats.errors.ServerError(code, url)[source]

Raised if the API is down.