Add a more concrete exception for 500 status codes.

Fixes #5797
This commit is contained in:
Rapptz
2020-09-09 21:24:14 -04:00
parent f8808dba9b
commit 450e71f086
4 changed files with 24 additions and 4 deletions

View File

@ -122,6 +122,14 @@ class NotFound(HTTPException):
"""
pass
class DiscordServerError(HTTPException):
"""Exception that's thrown for when a 500 range status code occurs.
Subclass of :exc:`HTTPException`.
.. versionadded:: 1.5
"""
pass
class InvalidData(ClientException):
"""Exception that's raised when the library encounters unknown