Exceptions
The following exceptions are thrown by the library.
TopGGException
ClientException
- exception topgg.ClientException[source]
Bases:
topgg.errors.TopGGException
Exception that’s thrown when an operation in the
DBLClient
fails.These are usually for exceptions that happened due to user input.
HTTPException
Forbidden
- exception topgg.Forbidden(response: ClientResponse, message: Union[dict, str])[source]
Bases:
topgg.errors.HTTPException
Exception that’s thrown when status code 403 occurs.
NotFound
- exception topgg.NotFound(response: ClientResponse, message: Union[dict, str])[source]
Bases:
topgg.errors.HTTPException
Exception that’s thrown when status code 404 occurs.
ServerError
- exception topgg.ServerError(response: ClientResponse, message: Union[dict, str])[source]
Bases:
topgg.errors.HTTPException
Exception that’s thrown when Top.gg returns “Server Error” responses (status codes such as 500 and 503).