Package com.singularsys.jep
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.singularsys.jep.JepException
com.singularsys.jep.ParseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GrammarException
Exception thrown at parse time.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionParseException
(String message) ParseException
(String message, int lineNumber, int columnNumber) ParseException
(String message, Throwable cause) ParseException
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionint
Return the column number where the error occurred, or -1 if not available.int
Return the line number where the error occurred, or -1 if not available.void
setPosition
(int lineNum, int colNum) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
jccpe
-
-
Constructor Details
-
ParseException
public ParseException() -
ParseException
- Parameters:
message
-
-
ParseException
-
ParseException
- Parameters:
message
-cause
-
-
ParseException
- Parameters:
cause
-
-
-
Method Details
-
getLineNumber
public int getLineNumber()Return the line number where the error occurred, or -1 if not available. -
getColumnNumber
public int getColumnNumber()Return the column number where the error occurred, or -1 if not available. -
setPosition
public void setPosition(int lineNum, int colNum) -
getMessage
- Overrides:
getMessage
in classThrowable
-