# coding=utf-8 class NoSuchSession(Exception): pass class AuthenticationFailed(Exception): pass class UserExists(Exception): pass class SignupFailed(Exception): pass class PasswordChangeFailed(Exception): pass class RequestProcessingError(Exception): pass class NotLoggedIn(Exception): pass class AccountMergeRequired(Exception): def __init__(self, username): Exception.__init__(self) self.username = username # the username which is required to be logged in, in order to merge the accounts