Files
motia/.npm-cache/_npx/0ebd1cb7ec11dd1f/node_modules/antlr4ts/misc/ParseCancellationException.d.ts
2025-10-19 14:57:07 +00:00

19 lines
660 B
TypeScript

/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
/**
* This exception is thrown to cancel a parsing operation. This exception does
* not extend {@link RecognitionException}, allowing it to bypass the standard
* error recovery mechanisms. {@link BailErrorStrategy} throws this exception in
* response to a parse error.
*
* @author Sam Harwell
*/
export declare class ParseCancellationException extends Error {
cause: Error;
readonly stack?: string;
constructor(cause: Error);
getCause(): Error;
}