Add exception hierarchy to the documentation.
This commit is contained in:
		
							
								
								
									
										17
									
								
								docs/api.rst
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								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`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user