bsh
Class EvalError
java.lang.Object
java.lang.Throwable
java.lang.Exception
bsh.EvalError
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ParseException, TargetError
public class EvalError
- extends java.lang.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
,
Serialized Form
Constructor Summary |
EvalError(java.lang.String s,
bsh.SimpleNode node,
CallStack callstack)
|
EvalError(java.lang.String s,
bsh.SimpleNode node,
CallStack callstack,
java.lang.Throwable cause)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EvalError
public EvalError(java.lang.String s,
bsh.SimpleNode node,
CallStack callstack,
java.lang.Throwable cause)
EvalError
public EvalError(java.lang.String s,
bsh.SimpleNode node,
CallStack callstack)
getMessage
public java.lang.String getMessage()
- Print the error with line number and stack trace.
- Overrides:
getMessage
in class java.lang.Throwable
reThrow
public void reThrow(java.lang.String msg)
throws EvalError
- Re-throw the error, prepending the specified message.
- Throws:
EvalError
getErrorText
public java.lang.String getErrorText()
getErrorLineNumber
public int getErrorLineNumber()
getErrorSourceFile
public java.lang.String getErrorSourceFile()
getScriptStackTrace
public java.lang.String getScriptStackTrace()
getRawMessage
public java.lang.String getRawMessage()
? 2000-2005 pat@pat.net :-)