|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
bsh.EvalError
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.
TargetError
,
Serialized FormConstructor Summary | |
EvalError(String s,
bsh.SimpleNode node,
CallStack callstack)
|
Method Summary | |
int |
getErrorLineNumber()
|
String |
getErrorSourceFile()
|
String |
getErrorText()
|
String |
getMessage()
|
String |
getScriptStackTrace()
|
protected void |
prependMessage(String s)
Prepend the message if it is non-null. |
void |
reThrow(String msg)
Re-throw the error, prepending the specified message. |
void |
setMessage(String s)
|
String |
toString()
Print the error with line number and stack trace. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EvalError(String s, bsh.SimpleNode node, CallStack callstack)
Method Detail |
public String toString()
public void reThrow(String msg) throws EvalError
EvalError
public String getErrorText()
public int getErrorLineNumber()
public String getErrorSourceFile()
public String getScriptStackTrace()
public String getMessage()
for a full display of the information
public void setMessage(String s)
protected void prependMessage(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |