From 40b55523df518991c2f9ddcd90911c7dd9983089 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 11 Apr 2021 19:17:36 -0500 Subject: [PATCH] Automatically document all exceptions --- docs/exceptions.rst | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) 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: -- 2.25.1