67d891178f0ed60c42f04f941f5bc16e51904438
[sfa.git] / util / excep.py
1
2 class MalformedHrnException(Exception):
3     def __init__(self, value):
4         self.value = value
5     def __str__(self):
6         return repr(self.value)
7
8 class TreeException(Exception):
9     def __init__(self, value):
10         self.value = value
11     def __str__(self):
12         return repr(self.value)
13
14 class NonexistingRecord(Exception):
15     def __init__(self, value):
16         self.value = value
17     def __str__(self):
18         return repr(self.value)
19
20 class ExistingRecord(Exception):
21     def __init__(self, value):
22         self.value = value
23     def __str__(self):
24         return repr(self.value)
25         
26 class NonexistingCredType(Exception):
27     def __init__(self, value):
28         self.value = value
29     def __str__(self):
30         return repr(self.value)
31
32 class NonexistingFile(Exception):
33     def __init__(self, value):
34         self.value = value
35     def __str__(self):
36         return repr(self.value)
37
38 class InvalidRPCParams(Exception):
39     def __init__(self, value):
40         self.value = value
41     def __str__(self):
42         return repr(self.value)
43
44 # SMBAKER exceptions follow
45
46 class ConnectionKeyGIDMismatch(Exception):
47     def __init__(self, value):
48         self.value = value
49     def __str__(self):
50         return repr(self.value)
51
52 class MissingCallerGID(Exception):
53     def __init__(self, value):
54         self.value = value
55     def __str__(self):
56         return repr(self.value)
57
58 class RecordNotFound(Exception):
59     def __init__(self, value):
60         self.value = value
61     def __str__(self):
62         return repr(self.value)
63
64 class UnknownGeniType(Exception):
65     def __init__(self, value):
66         self.value = value
67     def __str__(self):
68         return repr(self.value)
69
70 class MissingAuthority(Exception):
71     def __init__(self, value):
72         self.value = value
73     def __str__(self):
74         return repr(self.value)