discordapi.exceptions

Module Contents

exception discordapi.exceptions.DiscordError

Bases: Exception

Inheritance diagram of discordapi.exceptions.DiscordError

Base Exception for Discord Errors.

Initialize self. See help(type(self)) for accurate signature.

exception discordapi.exceptions.DiscordHTTPError(code, message, response)

Bases: DiscordError

Inheritance diagram of discordapi.exceptions.DiscordHTTPError

Exception to be thrown when error occurs from Discord HTTP API.

code

Error code specified by API.

message

Message specified by API.

response

http.cilent.HTTPResponse object containing the error

Initialize self. See help(type(self)) for accurate signature.