bsh
public class UtilEvalError extends 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.
See Also: UtilTargetError
Constructor Summary | |
---|---|
protected | UtilEvalError() |
UtilEvalError(String s) |
Method Summary | |
---|---|
EvalError | toEvalError(String msg, SimpleNode node, CallStack callstack)
Re-throw as an eval error, prefixing msg to the message and specifying
the node. |
EvalError | toEvalError(SimpleNode node, CallStack callstack) |
Parameters: msg may be null for no additional message.