Package org.antlr.v4.runtime.misc
Class ParseCancellationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
java.util.concurrent.CancellationException
org.antlr.v4.runtime.misc.ParseCancellationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
v3TreeGrammarException
This exception is thrown to cancel a parsing operation. This exception does
not extend
RecognitionException
, allowing it to bypass the standard
error recovery mechanisms. BailErrorStrategy
throws this exception in
response to a parse error.- Author:
- Sam Harwell
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseCancellationException
(String message) ParseCancellationException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseCancellationException
public ParseCancellationException() -
ParseCancellationException
-
ParseCancellationException
-
ParseCancellationException
-