catchCause<E2> method

ZIO<R, E2, A> catchCause<E2>(
  1. ZIO<R, E2, A> f(
    1. Cause<E> _
    )
)

Catch all defects that may occur on this ZIO. The result will be replaced by executing the ZIO resulting from the given function.

Implementation

ZIO<R, E2, A> catchCause<E2>(
  ZIO<R, E2, A> Function(Cause<E> _) f,
) =>
    _mapCauseFOr((ctx, _) => f(_).unsafeRun(ctx));