例外

Exceptions are available directly in the tweepy module, which means 例外は tweepy モジュールで直接利用できるので, すなわち tweepy.errors それ自体はインポートする必要がありません. 例えば tweepy.errors.TweepyExceptiontweepy.TweepyException として利用できます.

exception tweepy.errors.TweepyException

Bases: Exception

Base exception for Tweepy

exception tweepy.errors.HTTPException(response)

Bases: tweepy.errors.TweepyException

Exception raised when an HTTP request fails

exception tweepy.errors.BadRequest(response)

Bases: tweepy.errors.HTTPException

Exception raised for a 400 HTTP status code

exception tweepy.errors.Unauthorized(response)

Bases: tweepy.errors.HTTPException

Exception raised for a 401 HTTP status code

exception tweepy.errors.Forbidden(response)

Bases: tweepy.errors.HTTPException

Exception raised for a 403 HTTP status code

exception tweepy.errors.NotFound(response)

Bases: tweepy.errors.HTTPException

Exception raised for a 404 HTTP status code

exception tweepy.errors.TooManyRequests(response)

Bases: tweepy.errors.HTTPException

Exception raised for a 429 HTTP status code

exception tweepy.errors.TwitterServerError(response)

Bases: tweepy.errors.HTTPException

Exception raised for a 5xx HTTP status code