12 __version__ = VERSION |
12 __version__ = VERSION |
13 __revision__ = 'rev '+'$Rev$'.split()[1] |
13 __revision__ = 'rev '+'$Rev$'.split()[1] |
14 __date__ = '$Date$'.split()[1] |
14 __date__ = '$Date$'.split()[1] |
15 |
15 |
16 class VMMException(Exception): |
16 class VMMException(Exception): |
17 """Ausnahmeklasse für die Klasse VirtualMailManager""" |
17 """Exception class for VirtualMailManager exceptions""" |
18 def __init__(self, msg): |
18 def __init__(self, msg): |
19 Exception.__init__(self, msg) |
19 Exception.__init__(self, msg) |
20 |
20 |
21 class VMMConfigException(Exception): |
21 class VMMConfigException(Exception): |
22 """Ausnahmeklasse für Konfigurationssausnamhem""" |
22 """Exception class for Configurtion exceptions""" |
23 def __init__(self, msg): |
23 def __init__(self, msg): |
24 Exception.__init__(self, msg) |
24 Exception.__init__(self, msg) |
25 |
25 |
26 class VMMPermException(Exception): |
26 class VMMPermException(Exception): |
27 """Ausnahmeklasse für Berechtigungsausnamhem""" |
27 """Exception class for permissions exceptions""" |
28 pass |
28 pass |
29 |
29 |
30 class VMMNotRootException(Exception): |
30 class VMMNotRootException(Exception): |
31 """Ausnahmeklasse für unberechtige Zugriffe""" |
31 """Exception class for non-root exceptions""" |
32 def __init__(self, msg): |
32 def __init__(self, msg): |
33 Exception.__init__(self, msg) |
33 Exception.__init__(self, msg) |
34 |
34 |
35 class VMMDomainException(VMMException): |
35 class VMMDomainException(VMMException): |
36 """Ausnahmeklasse für Domainausnamhem""" |
36 """Exception class for Domain exceptions""" |
37 def __init__(self, msg): |
37 def __init__(self, msg): |
38 VMMException.__init__(self, msg) |
38 VMMException.__init__(self, msg) |
39 |
39 |
40 class VMMAccountException(VMMException): |
40 class VMMAccountException(VMMException): |
41 """Ausnahmeklasse für Accountausnamhem""" |
41 """Exception class for Account exceptions""" |
42 def __init__(self, msg): |
42 def __init__(self, msg): |
43 VMMException.__init__(self, msg) |
43 VMMException.__init__(self, msg) |
44 |
44 |
45 class VMMAliasException(VMMException): |
45 class VMMAliasException(VMMException): |
46 """Exception class for Alias exceptions""" |
46 """Exception class for Alias exceptions""" |