effect-io-ai

Package: effect
Module: Exit

Exit.mapErrorCause

Maps over the Cause contained in the Failure of the specified exit using the provided function.

Signature

declare const mapErrorCause: { <E, E2>(f: (cause: Cause.Cause<E>) => Cause.Cause<E2>): <A>(self: Exit<A, E>) => Exit<A, E2>; <E, A, E2>(self: Exit<A, E>, f: (cause: Cause.Cause<E>) => Cause.Cause<E2>): Exit<A, E2>; }

Source

Since v2.0.0