Hello all,
is there a possibility to have a global (application wide) exception
handler in twisted application? I would like to stop application in case
of any unhandled error in deferred callbacks.

If application is run from twistd ..., is it correct to stop application
like this?

def quit(failure):
  log.err(str(failure))
  reactor.callWhenRunning(reactor.stop)

But the main problem is how to get this method called if exception is
not handled by explicitly doing d.addErrback for each case.

Zoran


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to