dico.exception module

exception dico.exception.DicoException

Bases: Exception

Base exception class for this library.

exception dico.exception.WebsocketClosed

Bases: DicoException

Websocket is closed, so this action could not be performed.

exception dico.exception.WebsocketRateLimited(left)

Bases: DicoException

Websocket is rate limit, try again later.

exception dico.exception.DownloadFailed(url, code, resp)

Bases: DicoException

Downloading something has failed.

exception dico.exception.VoiceTimeout

Bases: DicoException

Failed to connect to voice before timeout. Try again.

exception dico.exception.HTTPError(route, code, resp)

Bases: DicoException

Special exception class for HTTP.

exception dico.exception.DiscordError(route, code, resp)

Bases: HTTPError

Discord has an error.

exception dico.exception.BadRequest(route, code, resp)

Bases: HTTPError

We sent incorrect request.

exception dico.exception.Forbidden(route, code, resp)

Bases: HTTPError

We don’t have permission for this request.

exception dico.exception.NotFound(route, code, resp)

Bases: HTTPError

This request isn’t something available.

exception dico.exception.RateLimited(route, code, resp)

Bases: HTTPError

We are rate-limited and couldn’t successfully requesting in desired count.

exception dico.exception.Unknown(route, code, resp)

Bases: HTTPError

Failed handling this type of error. If you see this report to GitHub Issues.