comparison idavoll/error.py @ 206:274a45d2a5ab

Implement root collection that includes all leaf nodes.
author Ralph Meijer <ralphm@ik.nu>
date Mon, 04 Aug 2008 13:47:10 +0000
parents b4bf0a5ce50d
children a321f9300054
comparison
equal deleted inserted replaced
205:e6b710bf2b24 206:274a45d2a5ab
6 6
7 def __str__(self): 7 def __str__(self):
8 return self.msg 8 return self.msg
9 9
10 10
11
11 class NodeNotFound(Error): 12 class NodeNotFound(Error):
12 pass 13 pass
14
13 15
14 16
15 class NodeExists(Error): 17 class NodeExists(Error):
16 pass 18 pass
17 19
33 35
34 class Forbidden(Error): 36 class Forbidden(Error):
35 pass 37 pass
36 38
37 39
40
38 class ItemForbidden(Error): 41 class ItemForbidden(Error):
39 pass 42 pass
43
40 44
41 45
42 class ItemRequired(Error): 46 class ItemRequired(Error):
43 pass 47 pass
44 48
45 49
50
46 class NoInstantNodes(Error): 51 class NoInstantNodes(Error):
47 pass 52 pass
53
48 54
49 55
50 class InvalidConfigurationOption(Error): 56 class InvalidConfigurationOption(Error):
51 msg = 'Invalid configuration option' 57 msg = 'Invalid configuration option'
52 58
53 59
60
54 class InvalidConfigurationValue(Error): 61 class InvalidConfigurationValue(Error):
55 msg = 'Bad configuration value' 62 msg = 'Bad configuration value'
56 63
57 64
65
58 class NodeNotPersistent(Error): 66 class NodeNotPersistent(Error):
59 pass 67 pass
68
60 69
61 70
62 class NoRootNode(Error): 71 class NoRootNode(Error):
63 pass 72 pass
64 73
66 75
67 class NoCallbacks(Error): 76 class NoCallbacks(Error):
68 """ 77 """
69 There are no callbacks for this node. 78 There are no callbacks for this node.
70 """ 79 """
80
81
82
83 class NoCollections(Error):
84 pass
85
86
87
88 class NoPublishing(Error):
89 """
90 This node does not support publishing.
91 """