twisted.internet.defer.fail(result=None) function documentationtwisted.internet.defer
View Source
Return a Deferred that
has already had .errback(result) called.
See succeed's
docstring for rationale.
| Parameters | result | The same argument that Deferred.errback
takes. |
| Returns | (type: Deferred) | |
| Raises | NoCurrentExceptionError | If result is None but there is no current
exception state. |