wikipedia.exceptions
index
/home/linkliman/Documents/Python/Python3.6/lib/python3.6/site-packages/wikipedia/exceptions.py

Global wikipedia exception and warning classes.

 
Modules
       
sys

 
Classes
       
builtins.Exception(builtins.BaseException)
WikipediaException
DisambiguationError
HTTPTimeoutError
PageError
RedirectError

 
class DisambiguationError(WikipediaException)
    Exception raised when a page resolves to a Disambiguation page.
 
The `options` property contains a list of titles
of Wikipedia pages that the query may refer to.
 
.. note:: `options` does not include titles that do not link to a valid Wikipedia page.
 
 
Method resolution order:
DisambiguationError
WikipediaException
builtins.Exception
builtins.BaseException
builtins.object

Methods defined here:
__init__(self, title, may_refer_to)
Initialize self.  See help(type(self)) for accurate signature.
__unicode__(self)

Methods inherited from WikipediaException:
__str__(self)
Return str(self).

Data descriptors inherited from WikipediaException:
__weakref__
list of weak references to the object (if defined)

Methods inherited from builtins.Exception:
__new__(*args, **kwargs) from builtins.type
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
helper for pickle
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args

 
class HTTPTimeoutError(WikipediaException)
    Exception raised when a request to the Mediawiki servers times out.
 
 
Method resolution order:
HTTPTimeoutError
WikipediaException
builtins.Exception
builtins.BaseException
builtins.object

Methods defined here:
__init__(self, query)
Initialize self.  See help(type(self)) for accurate signature.
__unicode__(self)

Methods inherited from WikipediaException:
__str__(self)
Return str(self).

Data descriptors inherited from WikipediaException:
__weakref__
list of weak references to the object (if defined)

Methods inherited from builtins.Exception:
__new__(*args, **kwargs) from builtins.type
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
helper for pickle
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args

 
class PageError(WikipediaException)
    Exception raised when no Wikipedia matched a query.
 
 
Method resolution order:
PageError
WikipediaException
builtins.Exception
builtins.BaseException
builtins.object

Methods defined here:
__init__(self, pageid=None, *args)
Initialize self.  See help(type(self)) for accurate signature.
__unicode__(self)

Methods inherited from WikipediaException:
__str__(self)
Return str(self).

Data descriptors inherited from WikipediaException:
__weakref__
list of weak references to the object (if defined)

Methods inherited from builtins.Exception:
__new__(*args, **kwargs) from builtins.type
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
helper for pickle
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args

 
class RedirectError(WikipediaException)
    Exception raised when a page title unexpectedly resolves to a redirect.
 
 
Method resolution order:
RedirectError
WikipediaException
builtins.Exception
builtins.BaseException
builtins.object

Methods defined here:
__init__(self, title)
Initialize self.  See help(type(self)) for accurate signature.
__unicode__(self)

Methods inherited from WikipediaException:
__str__(self)
Return str(self).

Data descriptors inherited from WikipediaException:
__weakref__
list of weak references to the object (if defined)

Methods inherited from builtins.Exception:
__new__(*args, **kwargs) from builtins.type
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
helper for pickle
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args

 
class WikipediaException(builtins.Exception)
    Base Wikipedia exception class.
 
 
Method resolution order:
WikipediaException
builtins.Exception
builtins.BaseException
builtins.object

Methods defined here:
__init__(self, error)
Initialize self.  See help(type(self)) for accurate signature.
__str__(self)
Return str(self).
__unicode__(self)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from builtins.Exception:
__new__(*args, **kwargs) from builtins.type
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
helper for pickle
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args

 
Data
        ODD_ERROR_MESSAGE = "This shouldn't happen. Please report on GitHub: github.com/goldsmith/Wikipedia"