enforce rights subsets in credentials
[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)
75
76 class PlanetLabRecordDoesNotExist(Exception):
77     def __init__(self, value):
78         self.value = value
79     def __str__(self):
80         return repr(self.value)
81
82 class PermissionError(Exception):
83     def __init__(self, value):
84         self.value = value
85     def __str__(self):
86         return repr(self.value)
87
88 class InsufficientRights(Exception):
89     def __init__(self, value):
90         self.value = value
91     def __str__(self):
92         return repr(self.value)
93
94 class MissingDelegateBit(Exception):
95     def __init__(self, value):
96         self.value = value
97     def __str__(self):
98         return repr(self.value)
99
100 class ChildRightsNotSubsetOfParent(Exception):
101     def __init__(self, value):
102         self.value = value
103     def __str__(self):
104         return repr(self.value)
105
106 class CertMissingParent(Exception):
107     def __init__(self, value):
108         self.value = value
109     def __str__(self):
110         return repr(self.value)
111
112 class CertNotSignedByParent(Exception):
113     def __init__(self, value):
114         self.value = value
115     def __str__(self):
116         return repr(self.value)
117
118 class GidInvalidParentHrn(Exception):
119     def __init__(self, value):
120         self.value = value
121     def __str__(self):
122         return repr(self.value)
123
124 class SliverDoesNotExist(Exception):
125     def __init__(self, value):
126         self.value = value
127     def __str__(self):
128         return repr(self.value)
129