// ets_tracing: off import { NoSuchElementException } from "../GlobalExceptions/index.js" import type * as O from "../Option/index.js" import type { Effect } from "./effect.js" import { someOrFail_ } from "./someOrFail.js" /** * Extracts the optional value, or fails with a `NoSuchElementException` */ export function someOrFailException( self: Effect>, __trace?: string ): Effect { return someOrFail_(self, () => new NoSuchElementException(), __trace) }