diff options
| author | Rapptz <[email protected]> | 2015-10-27 19:08:29 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-27 19:08:29 -0400 |
| commit | 3266d1ed10ead07fab67f99d43458fa50749574b (patch) | |
| tree | 54c0803d71075472a29b96aa1b43cfa01f4d7a37 | |
| parent | Rename InvaldiDestination to a generic ClientException. (diff) | |
| download | discord.py-3266d1ed10ead07fab67f99d43458fa50749574b.tar.xz discord.py-3266d1ed10ead07fab67f99d43458fa50749574b.zip | |
GatewayNotFound now has a default message.
| -rw-r--r-- | discord/errors.py | 6 |
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) |