mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
GatewayNotFound now has a default message.
This commit is contained in:
parent
d14bffcd96
commit
3266d1ed10
@ -29,13 +29,17 @@ class DiscordException(Exception):
|
|||||||
|
|
||||||
Ideally speaking, this could be caught to handle any exceptions thrown from this library.
|
Ideally speaking, this could be caught to handle any exceptions thrown from this library.
|
||||||
"""
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
class ClientException(DiscordException):
|
class ClientException(DiscordException):
|
||||||
"""Exception that's thrown when an operation in the :class:`Client` fails.
|
"""Exception that's thrown when an operation in the :class:`Client` fails.
|
||||||
|
|
||||||
These are usually for exceptions that happened due to user input.
|
These are usually for exceptions that happened due to user input.
|
||||||
"""
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
class GatewayNotFound(DiscordException):
|
class GatewayNotFound(DiscordException):
|
||||||
"""Thrown when the gateway hub for the :class:`Client` websocket is not found."""
|
"""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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user