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
ConstructorDescriptionParseException
(String aMessage) Creates a new parse exception for message.ParseException
(Parser aParser, ParseRule aRule) Creates a new parse exception. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Create message.int
Returns the char index.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
-
createMessage
Create message. -
getCharIndex
public int getCharIndex()Returns the char index.
-