Skip to content

Commit f4e8540

Browse files
committed
Add exception hierarchy
1 parent eda9d4e commit f4e8540

File tree

1 file changed

+40
-5
lines changed

1 file changed

+40
-5
lines changed

docs/exts/commands/exceptions.rst

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. currentmodule:: twitchio
1+
.. currentmodule:: twitchio.ext.commands
22

33
Exceptions
44
##########
@@ -33,20 +33,55 @@ Exceptions
3333

3434
.. autoexception:: twitchio.ext.commands.ArgumentError
3535

36-
.. autoexception:: twitchio.ext.commands.GuardFailure
37-
3836
.. autoexception:: twitchio.ext.commands.ConversionError
3937

4038
.. autoexception:: twitchio.ext.commands.BadArgument
4139

4240
.. autoexception:: twitchio.ext.commands.MissingRequiredArgument
4341

44-
.. autoexception:: twitchio.ext.commands.ModuleAlreadyLoadedError
42+
.. autoexception:: twitchio.ext.commands.UnexpectedQuoteError
43+
44+
.. autoexception:: twitchio.ext.commands.InvalidEndOfQuotedStringError
45+
46+
.. autoexception:: twitchio.ext.commands.ExpectedClosingQuoteError
47+
48+
.. autoexception:: twitchio.ext.commands.GuardFailure
49+
50+
.. autoexception:: twitchio.ext.commands.CommandOnCooldown
4551

4652
.. autoexception:: twitchio.ext.commands.ModuleLoadFailure
4753

54+
.. autoexception:: twitchio.ext.commands.ModuleAlreadyLoadedError
55+
4856
.. autoexception:: twitchio.ext.commands.ModuleNotLoadedError
4957

5058
.. autoexception:: twitchio.ext.commands.NoEntryPointError
5159

52-
.. autoexception:: twitchio.ext.commands.CommandOnCooldown
60+
61+
Exception Hierarchy
62+
~~~~~~~~~~~~~~~~~~~
63+
64+
.. exception_hierarchy::
65+
66+
- :exc:`CommandError`
67+
- :exc:`ComponentLoadError`
68+
- :exc:`CommandInvokeError`
69+
- :exc:`CommandHookError`
70+
- :exc:`CommandNotFound`
71+
- :exc:`CommandExistsError`
72+
- :exc:`PrefixError`
73+
- :exc:`InputError`
74+
- :exc:`ArgumentError`
75+
- :exc:`ConversionError`
76+
- :exc:`BadArgument`
77+
- :exc:`MissingRequiredArgument`
78+
- :exc:`UnexpectedQuoteError`
79+
- :exc:`InvalidEndOfQuotedStringError`
80+
- :exc:`ExpectedClosingQuoteError`
81+
- :exc:`GuardFailure`
82+
- :exc:`CommandOnCooldown`
83+
- :exc:`ModuleError`
84+
- :exc:`ModuleLoadFailure`
85+
- :exc:`ModuleAlreadyLoadedError`
86+
- :exc:`ModuleNotLoadedError`
87+
- :exc:`NoEntryPointError`

0 commit comments

Comments
 (0)