Package org.antlr.runtime
Class UnwantedTokenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.antlr.runtime.RecognitionException
org.antlr.runtime.MismatchedTokenException
org.antlr.runtime.UnwantedTokenException
- All Implemented Interfaces:
Serializable
An extra token while parsing a TokenStream
- See Also:
-
Field Summary
Fields inherited from class org.antlr.runtime.MismatchedTokenException
expecting
Fields inherited from class org.antlr.runtime.RecognitionException
approximateLineInfo, c, charPositionInLine, index, input, line, node, token
-
Constructor Summary
ConstructorsConstructorDescriptionUsed for remote debugger deserializationUnwantedTokenException
(int expecting, IntStream input) -
Method Summary
Methods inherited from class org.antlr.runtime.RecognitionException
extractInformationFromTreeNodeStream, getUnexpectedType
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
UnwantedTokenException
public UnwantedTokenException()Used for remote debugger deserialization -
UnwantedTokenException
-
-
Method Details
-
getUnexpectedToken
-
toString
- Overrides:
toString
in classMismatchedTokenException
-