aboutsummaryrefslogtreecommitdiff
path: root/discord/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/errors.py')
-rw-r--r--discord/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/errors.py b/discord/errors.py
index c908a8ac..b0f91cf8 100644
--- a/discord/errors.py
+++ b/discord/errors.py
@@ -125,6 +125,12 @@ class NotFound(HTTPException):
pass
+class InvalidData(ClientException):
+ """Exception that's raised when the library encounters unknown
+ or invalid data from Discord.
+ """
+ pass
+
class InvalidArgument(ClientException):
"""Exception that's thrown when an argument to a function
is invalid some way (e.g. wrong value or wrong type).