O'Reilly logo
  • Brendan Donegan thinks this is interesting:

d.errback("Triggering errback.")

From

Cover of Twisted Network Programming Essentials, 2nd Edition

Note

If you get ' Strings are not supported by Failure
' then change this to "d.errback(Exception("Triggering errback."))"