import * as tsplus_module_1 from "@tsplus/stdlib/exceptions";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/getOrFailWith";
/**
 * Lifts an `Maybe` into an `Effect`, if the option is not defined it fails
 * with `NoSuchElementException`.
 *
 * @tsplus static ets/Effect/Ops getOrFail
 */

export function getOrFail(option, __tsplusTrace) {
  return tsplus_module_2.getOrFailWith(option, () => new tsplus_module_1.NoSuchElement(), __tsplusTrace);
}
//# sourceMappingURL=getOrFail.mjs.map