//#region ../../node_modules/chevrotain/lib/src/parse/exceptions_public.js
var e = "MismatchedTokenException", t = "NoViableAltException", n = "EarlyExitException", r = "NotAllInputParsedException", i = [
	e,
	t,
	n,
	r
];
Object.freeze(i);
function a(e) {
	return i.includes(e.name);
}
var o = class extends Error {
	constructor(e, t) {
		/* istanbul ignore next - V8 workaround to remove constructor from stacktrace when typescript target is ES5 */
		super(e), this.token = t, this.resyncedTokens = [], Object.setPrototypeOf(this, new.target.prototype), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
	}
}, s = class extends o {
	constructor(t, n, r) {
		super(t, n), this.previousToken = r, this.name = e;
	}
}, c = class extends o {
	constructor(e, n, r) {
		super(e, n), this.previousToken = r, this.name = t;
	}
}, l = class extends o {
	constructor(e, t) {
		super(e, t), this.name = r;
	}
}, u = class extends o {
	constructor(e, t, r) {
		super(e, t), this.previousToken = r, this.name = n;
	}
};
//#endregion
export { u as EarlyExitException, s as MismatchedTokenException, c as NoViableAltException, l as NotAllInputParsedException, a as isRecognitionException };
