Errors

class mwapi.errors.APIError(code, info, content)[source]

Thrown when the MediaWiki API returns an error.

class mwapi.errors.LoginError[source]

Thrown when an error occurs during login.

class mwapi.errors.RequestError(*args, **kwargs)[source]

A generic error thrown by requests.

class mwapi.errors.ConnectionError(*args, **kwargs)[source]

Handles a requests.exceptions.ConnectionError

class mwapi.errors.HTTPError(*args, **kwargs)[source]

Handles a requests.exceptions.HTTPError

class mwapi.errors.TooManyRedirectsError(*args, **kwargs)[source]

Handles a requests.exceptions.TooManyRedirects

class mwapi.errors.TimeoutError(*args, **kwargs)[source]

Handles a requests.exceptions.TimeoutError