public class UtilEvalError
extends java.lang.Exception
To summarize: Utilities throw UtilEvalError. ASTs throw EvalError. ASTs catch UtilEvalError and rethrow it as EvalError using toEvalError( Node ).
Philosophically, EvalError and UtilEvalError corrospond to RuntimeException. However they are constrained in this way in order to add the context for error reporting.
UtilTargetError,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
UtilEvalError() |
|
UtilEvalError(java.lang.String s) |
|
UtilEvalError(java.lang.String s,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
EvalError |
toEvalError(Node node,
CallStack callstack) |
EvalError |
toEvalError(java.lang.String msg,
Node node,
CallStack callstack)
Re-throw as an eval error, prefixing msg to the message and specifying
the node.
|
EvalException |
toEvalException(Node node,
CallStack callstack) |
EvalException |
toEvalException(java.lang.String msg,
Node node,
CallStack callstack) |
protected UtilEvalError()
public UtilEvalError(java.lang.String s)
public UtilEvalError(java.lang.String s,
java.lang.Throwable cause)
public EvalError toEvalError(java.lang.String msg, Node node, CallStack callstack)
msg - may be null for no additional message.public EvalException toEvalException(java.lang.String msg, Node node, CallStack callstack)
public EvalException toEvalException(Node node, CallStack callstack)