Add exception hierarchy to the documentation.

This commit is contained in:
Rapptz
2019-03-12 01:07:47 -04:00
parent e15b4ef8e4
commit 13b23963ec
5 changed files with 85 additions and 3 deletions

View File

@ -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`