Errors
ClientException
¶
Bases: TwitchException
Exception raised when an operation in the Client class fails.
HTTPException
¶
Bases: TwitchException
Exception raised for failed HTTP requests to the Twitch API.
Attributes:
| Name | Type | Description |
|---|---|---|
response |
ClientResponse
|
The original aiohttp response object. |
status |
int
|
The HTTP status code of the response. |
code |
int or str
|
The Twitch API-specific error code, if available. |
text |
str
|
The error message or description. |
headers |
dict
|
The response headers from aiohttp. |
TwitchServerError
¶
Bases: HTTPException
Exception raised when a 500 range status code occurs.
Forbidden
¶
Bases: HTTPException
Exception raised when status code 403 occurs.
NotFound
¶
Bases: HTTPException
Exception raised when status code 404 occurs.
RateLimited
¶
Bases: HTTPException
Exception raised when rate limited and max timeout exceeded.
BadRequest
¶
Bases: HTTPException
Exception raised when status code 400 occurs.
Unauthorized
¶
Bases: HTTPException
Exception raised when status code 401 occurs.
AuthFailure
¶
Bases: ClientException
Exception raised when authentication fails, typically due to invalid credentials.
Conflict
¶
Bases: HTTPException
Exception raised when status code 409 occurs.
TokenError
¶
Bases: ClientException
Exception raised when there are token-related issues.