Errors¶
HTTP¶
- class HTTPException(status: int, message: str)¶
Bases:
ExceptionRaised when an HTTP error occurs.
- Parameters:
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class NotFound(status: int, message: str)¶
Bases:
HTTPExceptionRaised when the resource you tried to access was not found.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class Forbidden(status: int, message: str)¶
Bases:
HTTPExceptionRaised when you are forbidden from the resource you tried to access.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class Unauthorized(status: int, message: str)¶
Bases:
HTTPExceptionRaised when the server could not authenticate your identity.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class ImproperToken(status: int, message: str)¶
Bases:
HTTPExceptionRaised when an improper token was passed when calling
Bot.start().- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.