java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.sf.carte.echosvg.script.InterpreterException
- All Implemented Interfaces:
Serializable
An exception that will be thrown when a problem is encountered in the script
by an
Interpreter
interface implementation.- See Also:
-
Constructor Summary
ConstructorDescriptionInterpreterException
(Exception exception, String message, int lineno, int columnno) Builds an instance ofInterpreterException
.InterpreterException
(String message, int lineno, int columnno) Builds an instance ofInterpreterException
. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the column number where the error occurs.Returns the embedded exception.int
Returns the line number where the error occurs.Returns the message of this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InterpreterException
Builds an instance ofInterpreterException
.- Parameters:
message
- theException
message.lineno
- the number of the line the error occurs.columnno
- the number of the column the error occurs.
-
InterpreterException
Builds an instance ofInterpreterException
.- Parameters:
exception
- the embedded exception.message
- theException
message.lineno
- the number of the line the error occurs.columnno
- the number of the column the error occurs.
-
-
Method Details
-
getLineNumber
public int getLineNumber()Returns the line number where the error occurs. If this value is not known, returns -1. -
getColumnNumber
public int getColumnNumber()Returns the column number where the error occurs. If this value is not known, returns -1. -
getException
Returns the embedded exception. If no embedded exception is set, returns null. -
getMessage
Returns the message of this exception. If an error message has been specified, returns that one. Otherwise, return the error message of enclosed exception or null if any.- Overrides:
getMessage
in classThrowable
-