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 FormModifier | Constructor and Description |
---|---|
protected |
UtilEvalError() |
|
UtilEvalError(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
EvalError |
toEvalError(org.gjt.sp.jedit.bsh.SimpleNode node,
CallStack callstack) |
EvalError |
toEvalError(java.lang.String msg,
org.gjt.sp.jedit.bsh.SimpleNode node,
CallStack callstack)
Re-throw as an eval error, prefixing msg to the message and specifying
the node.
|
protected UtilEvalError()
public UtilEvalError(java.lang.String s)
public EvalError toEvalError(java.lang.String msg, org.gjt.sp.jedit.bsh.SimpleNode node, CallStack callstack)
msg
- may be null for no additional message.