diff options
| author | Rapptz <[email protected]> | 2019-03-12 05:27:34 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-12 05:27:34 -0400 |
| commit | 560783c3d222d156a073fad5d467cd6331b74ecb (patch) | |
| tree | 1a27882bab9f24e35813a7cfe9e5815c7852b76e /docs | |
| parent | Add exception hierarchy to the documentation. (diff) | |
| download | discord.py-560783c3d222d156a073fad5d467cd6331b74ecb.tar.xz discord.py-560783c3d222d156a073fad5d467cd6331b74ecb.zip | |
[commands] Separate view parsing errors from BadArgument.
This causes them to be raised from a new exception named
ArgumentParsingError with 3 children for ease with i18n. This is
technically a breaking change since it no longer derives from
BadArgument, though catching UserInputError will prevent this change
from affecting the user.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ext/commands/api.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/ext/commands/api.rst b/docs/ext/commands/api.rst index 7dc46e08..47af272d 100644 --- a/docs/ext/commands/api.rst +++ b/docs/ext/commands/api.rst @@ -226,6 +226,18 @@ Exceptions .. autoexception:: discord.ext.commands.MissingRequiredArgument :members: +.. autoexception:: discord.ext.commands.ArgumentParsingError + :members: + +.. autoexception:: discord.ext.commands.UnexpectedQuoteError + :members: + +.. autoexception:: discord.ext.commands.InvalidEndOfQuotedStringError + :members: + +.. autoexception:: discord.ext.commands.ExpectedClosingQuoteError + :members: + .. autoexception:: discord.ext.commands.BadArgument :members: @@ -278,6 +290,10 @@ Exception Hierarchy - :exc:`~.commands.TooManyArguments` - :exc:`~.commands.BadArgument` - :exc:`~.commands.BadUnionArgument` + - :exc:`~.commands.ArgumentParsingError` + - :exc:`~.commands.UnexpectedQuoteError` + - :exc:`~.commands.InvalidEndOfQuotedStringError` + - :exc:`~.commands.ExpectedClosingQuoteError` - :exc:`~.commands.CommandNotFound` - :exc:`~.commands.CheckFailure` - :exc:`~.commands.NoPrivateMessage` |