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.TweepyException¶
Bases:
ExceptionBase exception for Tweepy
Changed in version 4.0: Renamed from
TweepError
- exception tweepy.errors.HTTPException(response)¶
Bases:
tweepy.errors.TweepyExceptionException raised when an HTTP request fails
- exception tweepy.errors.BadRequest(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 400 HTTP status code
New in version 4.0.
- exception tweepy.errors.Unauthorized(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 401 HTTP status code
New in version 4.0.
- exception tweepy.errors.Forbidden(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 403 HTTP status code
New in version 4.0.
- exception tweepy.errors.NotFound(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 404 HTTP status code
New in version 4.0.
- exception tweepy.errors.TooManyRequests(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 429 HTTP status code
Changed in version 4.0: Renamed from
RateLimitError
- exception tweepy.errors.TwitterServerError(response)¶
Bases:
tweepy.errors.HTTPExceptionException raised for a 5xx HTTP status code
New in version 4.0.