exceptions.py 764 Bytes
Newer Older
1 2 3 4 5 6 7
#!/usr/bin/env python
#coding=utf8


class AlreadyRegistered(Exception):
    pass

8

9 10
class AuthenticationError(Exception):
    pass
11 12 13 14 15 16 17 18


class RightError(Exception):
    pass


class BadObjectError(Exception):
    pass
19 20 21 22


class NotConnectedAccountError(Exception):
    pass
23 24 25 26


class ReservedTagError(Exception):
    pass
Antoine Millet's avatar
Antoine Millet committed
27

Antoine Millet's avatar
Antoine Millet committed
28

Antoine Millet's avatar
Antoine Millet committed
29 30
class BadRoleError(Exception):
    pass
Antoine Millet's avatar
Antoine Millet committed
31 32


Antoine Millet's avatar
Antoine Millet committed
33 34 35 36
class JobError(Exception):
    pass


Antoine Millet's avatar
Antoine Millet committed
37 38 39 40 41 42
class BadJobTypeError(Exception):
    pass


class UnknownJobError(Exception):
    pass
43

Antoine Millet's avatar
Antoine Millet committed
44 45 46 47 48 49 50 51 52 53 54 55 56

class UnknownElectionType(Exception):
    pass


class UnknownElectionAlgo(Exception):
    pass


class UnknownMigrationType(Exception):
    pass


57 58
class UnknownObjectError(Exception):
    pass
59 60 61 62


class ElectionError(Exception):
    pass
Antoine Millet's avatar
Antoine Millet committed
63 64 65 66


class CloneError(Exception):
    pass