Exceptions - LeConstellationniste/Discord.py-Framework- GitHub Wiki
DiscordEasy Exceptions
All discordEasy exceptions are in the errors module.
DiscordEasyError
Base class for exceptions of package. It's a subclass of Exception
.
Attributes
Attributes Name | Type | Description | Default value |
---|---|---|---|
origin |
Exception | The original error that was raised. | |
message |
str | A description of error | origin.__repr__() |
_type |
type | The type of original error | type(origin) |
Methods
This class implements __repr__
and __str__
methods.
CommandError
Class for exceptions raised in a Command. It's a subclass of DiscordEasyError
.
Attributes
Attributes Name | Type | Description | Default value |
---|---|---|---|
origin |
Exception | The original error that was raised. | |
message |
str | A description of error | origin.__repr__() |
_type |
type | The type of original error | type(origin) |
cmd |
Command | The command where the error was raised |
MissingArgumentsError
Exception raised when one or more arguments are missing in the Discord command. It's a subclass of CommandError
.
DiscordTypeError
Exception raised when one or more are not of type requested in the Discord command. It's a subclass of CommandError
.
DiscordPermissionError
Exception raised when the user which call a command had not the permission for this command. It's a subclass of CommandError
.
ConditionError
Exception raised when the user which call a command had not the conditions valided for this command (attribute check
of Command
). It's a subclass of CommandError
.
DiscordEventError
Exception raised when a error in a listener is raised. It's a subclass of DiscordEasyError
.