blob: 66b8c56691de87d304c5e26119f4b4b734d9ddbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
class MissingErrorHandlerException(Exception):
def __init__(self):
Exception.__init__(self)
def __str__(self):
return "error_handler not defined: if you define a reply_handler you must also define an error_handler"
class MissingReplyHandlerException(Exception):
def __init__(self):
Exception.__init__(self)
def __str__(self):
return "reply_handler not defined: if you define an error_handler you must also define a reply_handler"
class ValidationException(Exception):
def __init__(self, msg=''):
self.msg = msg
Exception.__init__(self)
def __str__(self):
return "Error validating string: %s" % self.msg
class UnknownMethodException(Exception):
def __init__(self, msg=''):
self.msg = msg
Exception.__init__(self)
def __str__(self):
return "Unknown method: %s" % self.msg
|