aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-03-12 01:07:47 -0400
committerRapptz <[email protected]>2019-03-12 01:15:24 -0400
commit13b23963ec626f549852a71180d9ee193e73e611 (patch)
treebbbc1b2d0916a284319b2efa38259ed3c0d22a5f /docs/api.rst
parentRevert default parameter use_cached of Attachment.save back to False. (diff)
downloaddiscord.py-13b23963ec626f549852a71180d9ee193e73e611.tar.xz
discord.py-13b23963ec626f549852a71180d9ee193e73e611.zip
Add exception hierarchy to the documentation.
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index b80ee139..d1d2e754 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -2196,3 +2196,20 @@ The following exceptions are thrown by the library.
.. autoexception:: discord.opus.OpusError
.. autoexception:: discord.opus.OpusNotLoaded
+
+Exception Hierarchy
+~~~~~~~~~~~~~~~~~~~~~
+
+.. exception_hierarchy::
+
+ - :exc:`Exception`
+ - :exc:`DiscordException`
+ - :exc:`ClientException`
+ - :exc:`NoMoreItems`
+ - :exc:`GatewayNotFound`
+ - :exc:`HTTPException`
+ - :exc:`Forbidden`
+ - :exc:`NotFound`
+ - :exc:`InvalidArgument`
+ - :exc:`LoginFailure`
+ - :exc:`ConnectionClosed`