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

Function fail

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

Source from the content-addressed store, hash-verified

546
547/** @internal */
548export const fail = <E>(error: E): Layer.Layer<unknown, E> => failCause(Cause.fail(error))
549
550/** @internal */
551export 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