Package org.apache.batik.script
Class InterpreterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.batik.script.InterpreterException
-
- All Implemented Interfaces:
java.io.Serializable
public class InterpreterException extends java.lang.RuntimeExceptionAn exception that will be thrown when a problem is encountered in the script by anInterpreterinterface implementation.- Version:
- $Id: InterpreterException.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InterpreterException(java.lang.Exception exception, java.lang.String message, int lineno, int columnno)Builds an instance ofInterpreterException.InterpreterException(java.lang.String message, int lineno, int columnno)Builds an instance ofInterpreterException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnNumber()Returns the column number where the error occurs.java.lang.ExceptiongetException()Returns the embedded exception.intgetLineNumber()Returns the line number where the error occurs.java.lang.StringgetMessage()Returns the message of this exception.
-
-
-
Constructor Detail
-
InterpreterException
public InterpreterException(java.lang.String message, int lineno, int columnno)Builds an instance ofInterpreterException.- Parameters:
message- theExceptionmessage.lineno- the number of the line the error occurs.columnno- the number of the column the error occurs.
-
InterpreterException
public InterpreterException(java.lang.Exception exception, java.lang.String message, int lineno, int columnno)Builds an instance ofInterpreterException.- Parameters:
exception- the embedded exception.message- theExceptionmessage.lineno- the number of the line the error occurs.columnno- the number of the column the error occurs.
-
-
Method Detail
-
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
public java.lang.Exception getException()
Returns the embedded exception. If no embedded exception is set, returns null.
-
getMessage
public java.lang.String 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:
getMessagein classjava.lang.Throwable
-
-