From 560783c3d222d156a073fad5d467cd6331b74ecb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 12 Mar 2019 05:27:34 -0400 Subject: [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. --- docs/ext/commands/api.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/ext') 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` -- cgit v1.2.3