3
# Copyright (c) 2009 Twisted Matrix Laboratories.
4
# See LICENSE for details.
6
from twisted.spread import pb
7
from twisted.internet import reactor
9
class MyError(pb.Error):
10
"""This is an Expected Exception. Something bad happened."""
13
class MyError2(Exception):
14
"""This is an Unexpected Exception. Something really bad happened."""
18
def remote_broken(self):
19
msg = "fall down go boom"
20
print "raising a MyError exception with data '%s'" % msg
22
def remote_broken2(self):
24
print "raising a MyError2 exception with data '%s'" % msg
28
reactor.listenTCP(8800, pb.PBServerFactory(One()))
31
if __name__ == '__main__':