1 class MwClientError(RuntimeError):
5 class MediaWikiVersionError(MwClientError):
9 class APIDisabledError(MwClientError):
13 class HTTPError(MwClientError):
17 class HTTPStatusError(MwClientError):
21 class HTTPRedirectError(HTTPError):
25 class MaximumRetriesExceeded(MwClientError):
29 class APIError(MwClientError):
31 def __init__(self, code, info, kwargs):
34 MwClientError.__init__(self, code, info, kwargs)
37 class InsufficientPermission(MwClientError):
41 class UserBlocked(InsufficientPermission):
45 class EditError(MwClientError):
49 class ProtectedPageError(EditError, InsufficientPermission):
53 class FileExists(EditError):
57 class LoginError(MwClientError):
61 class EmailError(MwClientError):
65 class NoSpecifiedEmail(EmailError):