@@ -65,12 +65,13 @@ class ComponentLoadError(CommandError):
6565
6666class CommandInvokeError (CommandError ):
6767 """Exception raised when an error occurs during invocation of a command.
68-
68+
6969 Attributes
7070 ----------
7171 original: :class:`Exception` | None
7272 The original exception that caused this error. Could be None.
7373 """
74+
7475 def __init__ (self , msg : str | None = None , original : Exception | None = None ) -> None :
7576 self .original : Exception | None = original
7677 super ().__init__ (msg )
@@ -86,7 +87,7 @@ class CommandNotFound(CommandError):
8687
8788
8889class CommandExistsError (CommandError ):
89- """Exception raised when you try to add a command or alias to a command that is already registered on the
90+ """Exception raised when you try to add a command or alias to a command that is already registered on the
9091 :class:`~twitchio.ext.commands.Bot`."""
9192
9293
@@ -98,6 +99,7 @@ class InputError(CommandError):
9899 """Base exception for errors raised while parsing the input for command invocation. All :class:`ArgumentError` and
99100 child exception inherit from this class."""
100101
102+
101103class ArgumentError (InputError ):
102104 """Base exception for errors raised while parsing arguments in commands."""
103105
@@ -122,7 +124,7 @@ def __init__(self, close_quote: str) -> None:
122124
123125class GuardFailure (CommandError ):
124126 """Exception raised when a :func:`~.commands.guard` fails or blocks a command from executing.
125-
127+
126128 This exception should be subclassed when raising a custom exception for a :func:`~twitchio.ext.commands.guard`.
127129 """
128130
0 commit comments