bsh

Class EvalError

public class EvalError extends Exception

EvalError indicates that we cannot continue evaluating the script or the script has thrown an exception. EvalError may be thrown for a script syntax error, an evaluation error such as referring to an undefined variable, an internal error.

See Also: TargetError

Constructor Summary
EvalError(String s, SimpleNode node, CallStack callstack)
Method Summary
intgetErrorLineNumber()
StringgetErrorSourceFile()
StringgetErrorText()
StringgetMessage()
StringgetScriptStackTrace()
protected voidprependMessage(String s)
Prepend the message if it is non-null.
voidreThrow(String msg)
Re-throw the error, prepending the specified message.
voidsetMessage(String s)
StringtoString()
Print the error with line number and stack trace.

Constructor Detail

EvalError

public EvalError(String s, SimpleNode node, CallStack callstack)

Method Detail

getErrorLineNumber

public int getErrorLineNumber()

getErrorSourceFile

public String getErrorSourceFile()

getErrorText

public String getErrorText()

getMessage

public String getMessage()

See Also: for a full display of the information

getScriptStackTrace

public String getScriptStackTrace()

prependMessage

protected void prependMessage(String s)
Prepend the message if it is non-null.

reThrow

public void reThrow(String msg)
Re-throw the error, prepending the specified message.

setMessage

public void setMessage(String s)

toString

public String toString()
Print the error with line number and stack trace.
B) 2000 pat@pat.net :-)