From: Harmon Date: Mon, 12 Apr 2021 00:17:36 +0000 (-0500) Subject: Automatically document all exceptions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=40b55523df518991c2f9ddcd90911c7dd9983089;p=tweepy.git Automatically document all exceptions --- diff --git a/docs/exceptions.rst b/docs/exceptions.rst index 09bf4ff..c560d8c 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -6,25 +6,12 @@ Exceptions ********** -.. autoexception:: TweepyException - -.. autoexception:: HTTPException - :show-inheritance: - -.. autoexception:: BadRequest - :show-inheritance: - -.. autoexception:: Unauthorized - :show-inheritance: - -.. autoexception:: Forbidden - :show-inheritance: - -.. autoexception:: NotFound - :show-inheritance: - -.. autoexception:: TooManyRequests - :show-inheritance: - -.. autoexception:: TwitterServerError +Exceptions are available directly in the :mod:`tweepy` module, which means +:mod:`tweepy.errors` itself does not need to be imported. For example, +:exc:`tweepy.errors.TweepyException` is available as +:exc:`tweepy.TweepyException`. + +.. automodule:: tweepy.errors + :members: + :member-order: bysource :show-inheritance: