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.Clientortwitchio.ext.commands.Botis used to make a HTTP request to the Twitch API.- route¶
An optional
twitchio.Routesupplied to this exception, which contains various information about the request.- Type
twitchio.Route| None
- class twitchio.DeviceCodeFlowException¶
Exception raised when an error occurs during a DCF (Device Code Flow).
This exception inherits from
HTTPExceptionand contains additional information.- reason¶
The reason the Device Code Flow failed, as an enum. Could be
UNKNOWNif the reason was not provided by Twitch.
- route¶
An optional
twitchio.Routesupplied 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
HTTPExceptionand contains additional information.Warning
This exception may contain sensitive information.
- route¶
An optional
twitchio.Routesupplied 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
HTTPExceptionwhich is raised when the request fails for a reason.- channel¶
The the channel the message was attempted to be sent to.
- Type
- class twitchio.MissingConduit¶
Exception raised when
AutoClientorAutoBotattempts to perform an action that requires an associatedtwitchio.Conduitwhich is missing or not assigned yet.
TwitchIO - Documentation