org.apache.batik.script

Class InterpreterException

public class InterpreterException extends RuntimeException

An exception that will be thrown when a problem is encountered in the script by an Interpreter interface implementation.
Constructor Summary
InterpreterException(String message, int lineno, int columnno)
Builds an instance of InterpreterException.
InterpreterException(Exception exception, String message, int lineno, int columnno)
Builds an instance of InterpreterException.
Method Summary
intgetColumnNumber()
Returns the column number where the error occurs.
ExceptiongetException()
Returns the embedded exception.
intgetLineNumber()
Returns the line number where the error occurs.
StringgetMessage()
Returns the message of this exception.

Constructor Detail

InterpreterException

public InterpreterException(String message, int lineno, int columnno)
Builds an instance of InterpreterException.

Parameters: message the Exception message. lineno the number of the line the error occurs. columnno the number of the column the error occurs.

InterpreterException

public InterpreterException(Exception exception, String message, int lineno, int columnno)
Builds an instance of InterpreterException.

Parameters: exception the embedded exception. message the Exception message. lineno the number of the line the error occurs. columnno the number of the column the error occurs.

Method Detail

getColumnNumber

public int getColumnNumber()
Returns the column number where the error occurs. If this value is not known, returns -1.

getException

public Exception getException()
Returns the embedded exception. If no embedded exception is set, returns null.

getLineNumber

public int getLineNumber()
Returns the line number where the error occurs. If this value is not known, returns -1.

getMessage

public 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.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.