1 class MwClientError(RuntimeError):
5 class MediaWikiVersionError(MwClientError):
9 class APIDisabledError(MwClientError):
13 class MaximumRetriesExceeded(MwClientError):
17 class APIError(MwClientError):
19 def __init__(self, code, info, kwargs):
22 MwClientError.__init__(self, code, info, kwargs)
25 class InsufficientPermission(MwClientError):
29 class UserBlocked(InsufficientPermission):
33 class EditError(MwClientError):
37 class ProtectedPageError(EditError, InsufficientPermission):
41 class FileExists(EditError):
45 class LoginError(MwClientError):
49 class EmailError(MwClientError):
53 class NoSpecifiedEmail(EmailError):
57 class NoWriteApi(MwClientError):