comparison idavoll/error.py @ 167:ef22e4150caa

Move protocol implementations (pubsub, disco, forms) to and depend on wokkel. Author: ralphm Fixes: #4
author Ralph Meijer <ralphm@ik.nu>
date Wed, 03 Oct 2007 12:41:43 +0000
parents
children bc269696ef42
comparison
equal deleted inserted replaced
166:5abb017bd687 167:ef22e4150caa
1 # Copyright (c) 2003-2007 Ralph Meijer
2 # See LICENSE for details.
3
4 class Error(Exception):
5 msg = ''
6
7 def __str__(self):
8 return self.msg
9
10 class NodeNotFound(Error):
11 pass
12
13 class NodeExists(Error):
14 pass
15
16 class SubscriptionNotFound(Error):
17 pass
18
19 class SubscriptionExists(Error):
20 pass
21
22 class Forbidden(Error):
23 pass
24
25 class ItemForbidden(Error):
26 pass
27
28 class ItemRequired(Error):
29 pass
30
31 class NoInstantNodes(Error):
32 pass
33
34 class NotSubscribed(Error):
35 pass
36
37 class InvalidConfigurationOption(Error):
38 msg = 'Invalid configuration option'
39
40 class InvalidConfigurationValue(Error):
41 msg = 'Bad configuration value'
42
43 class NodeNotPersistent(Error):
44 pass
45
46 class NoRootNode(Error):
47 pass