jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/676605 )
Change subject: [doc] Add exceptions hierarchy to exceptions file ......................................................................
[doc] Add exceptions hierarchy to exceptions file
Change-Id: I46911e70220cafc0aec77469a94ffd7a10fd7bba --- M pywikibot/exceptions.py 1 file changed, 59 insertions(+), 2 deletions(-)
Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
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.