3
# a message bouncer. Raises an error in the callback function!
5
# it is subclassed form CallbackObjBase,
6
# so the error is also thrown on the client.
8
# If you change this to the regular ObjBase,
9
# you'll see that the error is silently passed back
10
# to the server, and the client never knows about it.
12
class Bouncer(Pyro.core.CallbackObjBase):
13
def __init__(self, name):
14
Pyro.core.ObjBase.__init__(self)
17
def process(self,message,callback):
18
print 'This is',self.name
19
print 'I\'ll throw an exception...'
20
raise ValueError("Some error in the callback function")