public class EvalError extends Exception
TargetError,
Serialized Form| Constructor 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, setStackTracepublic String toString()
public void reThrow(String msg) throws EvalError
EvalErrorpublic String getErrorText()
public int getErrorLineNumber()
public String getErrorSourceFile()
public String getScriptStackTrace()
public String getMessage()
getMessage in class Throwablefor a full display of the informationpublic void setMessage(String s)
protected void prependMessage(String s)
© 2000-2005 pat@pat.net :-)