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

Function fail

packages/effect/src/internal/layer.ts:547–547  ·  view source on GitHub ↗
(error: E)

Source from the content-addressed store, hash-verified

545
546/** @internal */
547export const fail = <E>(error: E): Layer.Layer<unknown, E> => failCause(Cause.fail(error))
548
549/** @internal */
550export const failSync = <E>(evaluate: LazyArg<E>): Layer.Layer<unknown, E> =>

Callers

nothing calls this directly

Calls 2

failCauseFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…