(no commit message)
[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)