Function t.i.d.fail(result=None):

Part of twisted.internet.defer View Source

Return a Deferred that has already had '.errback(result)' called.

See succeed's docstring for rationale.
ParametersresultThe same argument that Deferred.errback takes.
Returns (type: Deferred )
RaisesNoCurrentExceptionErrorIf result is None but there is no current exception state.
API Documentation for Twisted, generated by pydoctor at 2008-05-18 16:50:21.