summaryrefslogtreecommitdiff
path: root/errors/session.py
blob: ce35dca81a60034f8713bb18362ec3d7417517b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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