org.omegahat.Environment.Interpreter
Class EvaluationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.omegahat.Environment.Interpreter.EvaluationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- EndSourceInputException
- public class EvaluationException
- extends java.lang.RuntimeException
This is an exception which is thrown when evaluating an expression
or function causes an exception to be thrown in Java. Rather than
showing the stack trace for the JVM, we want to provide the user with
a stack trace of the expression evaluation. This involves functions,
expressions being potentially deeply nested. The information should
be available using the tree structure of the expressions.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
errorExpression
protected ExpressionInt errorExpression
toplevelExpression
protected ExpressionInt toplevelExpression
evaluator
protected Evaluator evaluator
message
protected java.lang.String message
javaException
protected java.lang.Throwable javaException
EvaluationException
public EvaluationException(java.lang.String message,
ExpressionInt error,
Evaluator evaluator)
EvaluationException
public EvaluationException(java.lang.String message,
java.lang.Throwable e,
ExpressionInt error,
Evaluator evaluator)
EvaluationException
public EvaluationException(java.lang.String msg,
Evaluator evaluator)
getTargetException
public java.lang.Throwable getTargetException()
errorExpression
public ExpressionInt errorExpression()
errorExpression
public ExpressionInt errorExpression(ExpressionInt e)
toplevelExpression
public ExpressionInt toplevelExpression()
toplevelExpression
public ExpressionInt toplevelExpression(ExpressionInt e)
evaluator
public Evaluator evaluator()
evaluator
public Evaluator evaluator(Evaluator e)
javaException
public java.lang.Throwable javaException()
javaException
public java.lang.Throwable javaException(java.lang.Throwable e)
message
public java.lang.String message()
message
public java.lang.String message(java.lang.String msg)