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

Function exitFindErrorOption

packages/effect/src/internal/effect.ts:2048–2051  ·  view source on GitHub ↗
(self: Exit.Exit<A, E>)

Source from the content-addressed store, hash-verified

2046
2047/** @internal */
2048export const exitFindErrorOption = <A, E>(self: Exit.Exit<A, E>): Option.Option<E> => {
2049 const error = exitFindError(self)
2050 return Result.isFailure(error) ? Option.none() : Option.some(error.success)
2051}
2052
2053// ----------------------------------------------------------------------------
2054// environment

Callers

nothing calls this directly

Calls 1

someMethod · 0.80

Tested by

no test coverage detected