MCPcopy
hub / github.com/tornadoweb/tornado / errback

Function errback

tornado/platform/twisted.py:55–61  ·  view source on GitHub ↗
(failure: failure.Failure)

Source from the content-addressed store, hash-verified

53 f = Future() # type: Future[typing.Any]
54
55 def errback(failure: failure.Failure) -> None:
56 try:
57 failure.raiseException()
58 # Should never happen, but just in case
59 raise Exception("errback called without error")
60 except:
61 future_set_exc_info(f, sys.exc_info())
62
63 d.addCallbacks(f.set_result, errback)
64 return f

Callers

nothing calls this directly

Calls 1

future_set_exc_infoFunction · 0.90

Tested by

no test coverage detected