effect-io-ai

Package: effect
Module: Micro

Micro.catchAll

Catch the error of the given Micro effect, allowing you to recover from it.

It only catches expected errors.

Signature

declare const catchAll: { <E, B, E2, R2>(f: (e: NoInfer<E>) => Micro<B, E2, R2>): <A, R>(self: Micro<A, E, R>) => Micro<A | B, E2, R | R2>; <A, E, R, B, E2, R2>(self: Micro<A, E, R>, f: (e: NoInfer<E>) => Micro<B, E2, R2>): Micro<A | B, E2, R | R2>; }

Source

Since v3.4.6