import * as tsplus_module_1 from "@tsplus/stdlib/exceptions";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/leftOrFail";
/**
 * Returns a successful effect if the value is `Left`, or fails with a
 * `NoSuchElementException`.
 *
 * @tsplus fluent ets/STM leftOrFailException
 */

export function leftOrFailException(self) {
  return tsplus_module_2.leftOrFail_(self, () => new tsplus_module_1.NoSuchElement());
}
//# sourceMappingURL=leftOrFailException.mjs.map