[PR]
Exceptions
Exceptions are available directly in the tweepy module, which means
tweepy.errors itself does not need to be imported. For example,
tweepy.errors.TweepyException is available as
tweepy.TweepyException.
- exception tweepy.errors.HTTPException
ベースクラス:
TweepyExceptionException raised when an HTTP request fails
バージョン 4.0 で追加.
バージョン 4.10 で変更:
responseattribute can be an instance ofaiohttp.ClientResponse- response
Requests Response from the Twitter API
- exception tweepy.errors.BadRequest
ベースクラス:
HTTPExceptionException raised for a 400 HTTP status code
バージョン 4.0 で追加.
- exception tweepy.errors.Unauthorized
ベースクラス:
HTTPExceptionException raised for a 401 HTTP status code
バージョン 4.0 で追加.
- exception tweepy.errors.Forbidden
ベースクラス:
HTTPExceptionException raised for a 403 HTTP status code
バージョン 4.0 で追加.
- exception tweepy.errors.NotFound
ベースクラス:
HTTPExceptionException raised for a 404 HTTP status code
バージョン 4.0 で追加.
- exception tweepy.errors.TooManyRequests
ベースクラス:
HTTPExceptionException raised for a 429 HTTP status code
バージョン 4.0 で追加.
- exception tweepy.errors.TwitterServerError
ベースクラス:
HTTPExceptionException raised for a 5xx HTTP status code
バージョン 4.0 で追加.