|
|||||||||
| Home >> All >> [ bsh overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
bsh
Class EvalError

java.lang.Objectjava.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.
| Nested Class Summary |
| Nested classes inherited from class java.lang.Throwable |
|
| Field Summary | |
(package private) CallStack |
callstack
|
(package private) java.lang.String |
message
|
(package private) SimpleNode |
node
|
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
| Constructor Summary | |
EvalError(java.lang.String s,
SimpleNode node,
CallStack callstack)
|
|
| Method Summary | |
int |
getErrorLineNumber()
|
java.lang.String |
getErrorSourceFile()
|
java.lang.String |
getErrorText()
|
java.lang.String |
getMessage()
Get the message associated with this Throwable. |
(package private) SimpleNode |
getNode()
The error has trace info associated with it. |
java.lang.String |
getScriptStackTrace()
|
protected void |
prependMessage(java.lang.String s)
Prepend the message if it is non-null. |
void |
reThrow(java.lang.String msg)
Re-throw the error, prepending the specified message. |
void |
setMessage(java.lang.String s)
|
(package private) void |
setNode(SimpleNode node)
|
java.lang.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 |
| Field Detail |
node
SimpleNode node
message
java.lang.String message
callstack
CallStack callstack
| Constructor Detail |
EvalError
public EvalError(java.lang.String s, SimpleNode node, CallStack callstack)
| Method Detail |
toString
public java.lang.String toString()
- Print the error with line number and stack trace.
reThrow
public void reThrow(java.lang.String msg) throws EvalError
- Re-throw the error, prepending the specified message.
getNode
SimpleNode getNode()
- The error has trace info associated with it.
i.e. It has an AST node that can print its location and source text.
setNode
void setNode(SimpleNode node)
getErrorText
public java.lang.String getErrorText()
getErrorLineNumber
public int getErrorLineNumber()
getErrorSourceFile
public java.lang.String getErrorSourceFile()
getScriptStackTrace
public java.lang.String getScriptStackTrace()
getMessage
public java.lang.String getMessage()
- Description copied from class:
java.lang.Throwable - Get the message associated with this Throwable.
setMessage
public void setMessage(java.lang.String s)
prependMessage
protected void prependMessage(java.lang.String s)
- Prepend the message if it is non-null.
|
|||||||||
| Home >> All >> [ bsh overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC