Exceptions

HTTPException

class amari.exceptions.HTTPException(response: aiohttp.client_reqrep.ClientResponse, message: Optional[str] = None)[source]

Base Exception for HTTP errors.

NotFound

class amari.exceptions.NotFound(response: aiohttp.client_reqrep.ClientResponse, message: Optional[str] = 'Guild or user was not found.')[source]

Raised when the guild or user is not found.

InvalidToken

class amari.exceptions.InvalidToken(response: aiohttp.client_reqrep.ClientResponse, message: Optional[str] = None)[source]

Raised when the authentication key is invalid.

RatelimitException

class amari.exceptions.RatelimitException(response: aiohttp.client_reqrep.ClientResponse, message: Optional[str] = 'Slow down! You are being ratelimited!')[source]

Raised when ratelimit responses are recieved.

AmariServerError

class amari.exceptions.AmariServerError(response: aiohttp.client_reqrep.ClientResponse, message: Optional[str] = 'There was an internal error in the Amari servers.')[source]

Raised when their is an internal error in the Amari servers.