import * as tsplus_module_1 from "@effect/core/io/Effect/operations/succeedNow";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/foldCauseEffect";
/**
 * Recovers from all errors with provided `Cause`.
 *
 * See `absorb`, `sandbox`, `mapErrorCause` for other functions that can
 * recover from defects.
 *
 * @tsplus fluent ets/Effect catchAllCause
 */

export function catchAllCause_(self, f, __tsplusTrace) {
  return tsplus_module_2.foldCauseEffect_(self, f, tsplus_module_1.succeedNow, __tsplusTrace);
}
/**
 * Recovers from all errors with provided `Cause`.
 *
 * See `absorb`, `sandbox`, `mapErrorCause` for other functions that can
 * recover from defects.
 *
 * @tsplus static ets/Effect/Aspects catchAllCause
 */

export const catchAllCause = (f, __tsplusTrace) => self => catchAllCause_(self, f, __tsplusTrace);
//# sourceMappingURL=catchAllCause.mjs.map