Exceptions
Exceptions are available directly in the twitcaspy module, which means
twitcaspy.errors itself does not need to be imported. For example,
twitcaspy.errors.TwitcaspyException is available as
twitcaspy.TwitcaspyException.
- exception twitcaspy.errors.HTTPException(response)
Bases:
twitcaspy.errors.TwitcaspyExceptionException raised when an HTTP request fails
- exception twitcaspy.errors.BadRequest(response)
Bases:
twitcaspy.errors.HTTPExceptionException raised for a 400 HTTP status code
- exception twitcaspy.errors.Unauthorized(response)
Bases:
twitcaspy.errors.HTTPExceptionException raised for a 401 HTTP status code
- exception twitcaspy.errors.Forbidden(response)
Bases:
twitcaspy.errors.HTTPExceptionException raised for a 403 HTTP status code
- exception twitcaspy.errors.NotFound(response)
Bases:
twitcaspy.errors.HTTPExceptionException raised for a 404 HTTP status code
- exception twitcaspy.errors.TooManyRequests(response)
Bases:
twitcaspy.errors.HTTPExceptionException raised for a 429 HTTP status code
- exception twitcaspy.errors.TwitcastingServerError(response)
Bases:
twitcaspy.errors.HTTPExceptionException raised for a 5xx HTTP status code