Source code for aiowiki.exceptions
[docs]class PageNotFound(Exception):
"""Exception raised when a page does not exist"""
pass
[docs]class LoginFailure(Exception):
"""Exception raised when a :meth:`~aiowiki.Wiki.login` fails"""
pass
[docs]class BadWikiUrl(Exception):
"""Exception raised when the URL of the :meth:`~aiowiki.Wiki` is not in the standard Wikimedia API format"""
pass
[docs]class TokenGetError(Exception):
"""Exception raised when the internal acquiring for a token fails"""
pass
[docs]class CreateAccountError(Exception):
"""Exception raised when :meth:`~aiowiki.Wiki.create_account` fails"""
pass
[docs]class EditError(Exception):
"""Exception raised when :meth:`~aiowiki.Page.edit` fails"""
pass
[docs]class NoSuchUserError(Exception):
"""Exception raised when :meth:`~aiowiki.Wiki.userrights` fails because the target user does not exist"""
pass
[docs]class InvalidGroupError(Exception):
"""Exception raised when :meth:`~aiowiki.Wiki.userrights` fails because the selected group for adding to does not exist"""
pass
[docs]class UserRightsNotChangedError(Exception):
"""Exception raised when :meth:`~aiowiki.Wiki.userrights` fails for several reasons"""
pass