public class EvalError extends Exception
TargetError
,
Serialized FormConstructor and Description |
---|
EvalError(String s,
bsh.SimpleNode node,
CallStack callstack) |
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
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()
getMessage
in class Throwable
for a full display of the information
public void setMessage(String s)
protected void prependMessage(String s)
? 2000-2005 pat@pat.net :-)