"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.someOrFailException = void 0;
// ets_tracing: off
const GlobalExceptions_1 = require("../GlobalExceptions");
const someOrFail_1 = require("./someOrFail");
/**
 * Extracts the optional value, or fails with a `NoSuchElementException`
 */
function someOrFailException(self, __trace) {
    return (0, someOrFail_1.someOrFail_)(self, () => new GlobalExceptions_1.NoSuchElementException(), __trace);
}
exports.someOrFailException = someOrFailException;
//# sourceMappingURL=someOrFailException.js.map