~soren/nova/iptables-security-groups

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/historic/2003/pycon/deferex/deferex-simple-failure.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)