jenkins-bot submitted this change.

View Change

Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
[doc] Add exceptions hierarchy to exceptions file

Change-Id: I46911e70220cafc0aec77469a94ffd7a10fd7bba
---
M pywikibot/exceptions.py
1 file changed, 59 insertions(+), 2 deletions(-)

diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py
index 4eeca42..0e77041 100644
--- a/pywikibot/exceptions.py
+++ b/pywikibot/exceptions.py
@@ -1,5 +1,62 @@
-"""
-Exception and warning classes used throughout the framework.
+"""**Pywikibot Exceptions** and warning classes.
+
+This module contains all exception and warning classes used throughout
+the framework::
+
+ Exception
+ +-- Error
+ +-- AutoblockUser
+ +-- CaptchaError
+ +-- InvalidTitle
+ +-- NoUsername
+ +-- PageRelatedError
+ | +-- CircularRedirect
+ | +-- InterwikiRedirectPage
+ | +-- IsNotRedirectPage
+ | +-- IsRedirectPage
+ | +-- NoMoveTarget
+ | +-- NoPage
+ | +-- NotEmailableError
+ | +-- PageLoadRelatedError
+ | | +-- InconsistentTitleReceived
+ | +-- PageSaveRelatedError
+ | | +-- EditConflict
+ | | | +-- ArticleExistsConflict
+ | | | +-- PageCreatedConflict
+ | | | +-- PageDeletedConflict
+ | | +-- LockedPage
+ | | | +-- LockedNoPage
+ | | | +-- CascadeLockedPage
+ | | +-- NoCreateError
+ | | +-- OtherPageSaveError
+ | | +-- SpamblacklistError
+ | | +-- TitleblacklistError
+ | +-- UnsupportedPage
+ +-- SectionError
+ +-- ServerError
+ | +-- FatalServerError
+ | +-- Server414Error
+ | +-- Server504Error
+ +-- SiteDefinitionError
+ | +-- UnknownFamily
+ | +-- UnknownSite
+ +-- TimeoutError
+ | +-- MaxlagTimeoutError
+ +-- UserRightsError
+ | +-- HiddenKeyError (KeyError)
+ +-- UnknownExtension (NotImplementedError)
+ +-- WikiBaseError
+ +-- CoordinateGlobeUnknownException (NotimplementedError)
+ +-- EntityTypeUnknownException
+ +-- NoWikibaseEntity
+
+ UserWarning
+ +-- ArgumentDeprecationWarning (FutureWarning)
+ +-- FamilyMaintenanceWarning
+
+ RuntimeWarning
+ +-- NotImplementedWarning
+

Error: Base class, all exceptions should the subclass of this class.


To view, visit change 676605. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I46911e70220cafc0aec77469a94ffd7a10fd7bba
Gerrit-Change-Number: 676605
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged