t.i.d.fail(result=None) : function documentation

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 2015-01-30 14:14:53.