[Twisted-Python] How to chain deferred calls

vitaly at synapticvision.com vitaly at synapticvision.com
Wed Oct 21 16:12:22 EDT 2009

how can I chain in defer methods that could raise exception while  
showing the exception that coming from method? I mean, if I'll do:
return (
than "Common2AllException" will be raised if abc1() raise Exception,  
but I'd like to see the adc1() own exception (and not  
"Common2AllException") ?

t = Test()
def abc1(self):
   if t.test() is None:
     raise Exception("Error11")
     return 1

def abc2(self):
   if t.test() is None:
     raise Exception("Error12")
     return 1

def abc3(self):
   if t.test() is None:
     raise Exception("Error13")
     return 1

Appreciate the help.

More information about the Twisted-Python mailing list