例外
例外は twitcaspy モジュールから直接利用できます。つまり、 twitcaspy.errors 自体をインポートする必要はありません。例えば、 twitcaspy.errors.TwitcaspyException は twitcaspy.TwitcaspyException として使用できます。
- exception twitcaspy.errors.HTTPException(response)
ベースクラス:
twitcaspy.errors.TwitcaspyExceptionException raised when an HTTP request fails
- exception twitcaspy.errors.BadRequest(response)
ベースクラス:
twitcaspy.errors.HTTPExceptionException raised for a 400 HTTP status code
- exception twitcaspy.errors.Unauthorized(response)
ベースクラス:
twitcaspy.errors.HTTPExceptionException raised for a 401 HTTP status code
- exception twitcaspy.errors.Forbidden(response)
ベースクラス:
twitcaspy.errors.HTTPExceptionException raised for a 403 HTTP status code
- exception twitcaspy.errors.NotFound(response)
ベースクラス:
twitcaspy.errors.HTTPExceptionException raised for a 404 HTTP status code
- exception twitcaspy.errors.TooManyRequests(response)
ベースクラス:
twitcaspy.errors.HTTPExceptionException raised for a 429 HTTP status code
- exception twitcaspy.errors.TwitcastingServerError(response)
ベースクラス:
twitcaspy.errors.HTTPExceptionException raised for a 5xx HTTP status code