Exceptions¶
- class twitchio.TwitchioException¶
Base exception for TwitchIO.
All custom TwitchIO exceptions inherit from this class.
- class twitchio.HTTPException¶
Exception raised when an HTTP request fails.
This exception can be raised anywhere the
twitchio.Client
ortwitchio.ext.commands.Bot
is used to make a HTTP request to the Twitch API.- route¶
An optional
twitchio.Route
supplied to this exception, which contains various information about the request.- Type
twitchio.Route
| None
- class twitchio.InvalidTokenException¶
Exception raised when an token can not be validated or refreshed.
This exception inherits from
HTTPException
and contains additional information.Warning
This exception may contain sensitive information.
- route¶
An optional
twitchio.Route
supplied to this exception, which contains various information about the request.- Type
twitchio.Route
| None
- class twitchio.MessageRejectedError¶
Exception raised when Twitch rejects a sent message. This is not the same as a
HTTPException
which is raised when the request fails for a reason.- channel¶
The the channel the message was attempted to be sent to.
- Type