aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/errors.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/discord/errors.py b/discord/errors.py
index ed50f8da..6fb7f0f5 100644
--- a/discord/errors.py
+++ b/discord/errors.py
@@ -29,13 +29,17 @@ class DiscordException(Exception):
Ideally speaking, this could be caught to handle any exceptions thrown from this library.
"""
+ pass
class ClientException(DiscordException):
"""Exception that's thrown when an operation in the :class:`Client` fails.
These are usually for exceptions that happened due to user input.
"""
+ pass
class GatewayNotFound(DiscordException):
"""Thrown when the gateway hub for the :class:`Client` websocket is not found."""
- pass
+ def __init__(self):
+ message = 'The gateway to connect to discord was not found.'
+ super(GatewayNotFound, self).__init__(message)