/** * Recovers from all errors with provided `Cause`. * * See `absorb`, `sandbox`, `mapErrorCause` for other functions that can * recover from defects. * * @tsplus static effect/core/io/Effect.Aspects catchAllCause * @tsplus pipeable effect/core/io/Effect catchAllCause */ export function catchAllCause(f: (cause: Cause) => Effect) { return (self: Effect): Effect => self.foldCauseEffect(f, Effect.succeed) }