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:
java.io.Serializable
public class ParseCancellationException extends java.util.concurrent.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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseCancellationException()
ParseCancellationException(java.lang.String message)
ParseCancellationException(java.lang.String message, java.lang.Throwable cause)
ParseCancellationException(java.lang.Throwable cause)
-
-
-
Constructor Detail
-
ParseCancellationException
public ParseCancellationException()
-
ParseCancellationException
public ParseCancellationException(java.lang.String message)
-
ParseCancellationException
public ParseCancellationException(java.lang.Throwable cause)
-
ParseCancellationException
public ParseCancellationException(java.lang.String message, java.lang.Throwable cause)
-
-