MCPcopy Create free account
hub / github.com/Effect-TS/effect / onFailure

Function onFailure

packages/effect/src/unstable/http/HttpClient.ts:664–669  ·  view source on GitHub ↗
(cause)

Source from the content-addressed store, hash-verified

662 return Effect.succeed(new InterruptibleResponse(response, controller))
663 },
664 onFailure(cause) {
665 if (Cause.hasInterrupts(cause)) {
666 controller.abort()
667 }
668 return Effect.failCause(cause)
669 }
670 })
671 )
672 }

Callers

nothing calls this directly

Calls 5

inspectResponseFunction · 0.85
abortMethod · 0.80
retryFunction · 0.70
failMethod · 0.45

Tested by

no test coverage detected