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
public class ParseCancellationException extends CancellationException
This exception is thrown to cancel a parsing operation. This exception does not extendRecognitionException
, allowing it to bypass the standard error recovery mechanisms.BailErrorStrategy
throws this exception in response to a parse error.- Author:
- Sam Harwell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseCancellationException()
ParseCancellationException(String message)
ParseCancellationException(String message, Throwable cause)
ParseCancellationException(Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-