fandom.error module¶
Global fandom exception and warning classes.
-
exception
fandom.error.
FandomError
(query, wiki, language)¶ Bases:
fandom.error.FandomException
Exception raised when the requested query can’t be found
-
exception
fandom.error.
HTTPTimeoutError
(query)¶ Bases:
fandom.error.FandomException
Exception raised when a request to the Mediawiki servers times out.
-
exception
fandom.error.
PageError
(pageid=None, *args)¶ Bases:
fandom.error.FandomException
Exception raised when no fandom matched a query.
-
exception
fandom.error.
RedirectError
(title)¶ Bases:
fandom.error.FandomException
Exception raised when a page title unexpectedly resolves to a redirect.
-
exception
fandom.error.
RequestError
(url, params)¶ Bases:
fandom.error.FandomException
Exception raised when the request does not return usable data. Usually raised when the wiki doesn’t exist in the requested language