Package snap.parse
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
snap.parse.ParseException
- All Implemented Interfaces:
Serializable
An exception subclass for parser.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException
(String aMessage) Creates a new parse exception for message.ParseException
(Parser aParser, ParseRule aRule) Creates a new parse exception. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the char index.Returns the characters from error to end of line or input.Create message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
Creates a new parse exception. -
ParseException
Creates a new parse exception for message.
-
-
Method Details
-
getMessage
Create message.- Overrides:
getMessage
in classThrowable
-
getErrorChars
Returns the characters from error to end of line or input. -
getCharIndex
public int getCharIndex()Returns the char index.
-