Initial import to Tizen
[profile/ivi/python-twisted.git] / doc / historic / 2003 / pycon / deferex / deferex-simple-failure.py
1 from deferexex import adder
2
3 def blowUp(result):
4     raise Exception("I can't go on!")
5
6 def onSuccess(result):
7     print result + 3
8
9 adder.callRemote("add", 1, 2).addCallback(blowUp).addCallback(onSuccess)