Package nz.org.riskscape.engine.rl
Class EvalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nz.org.riskscape.engine.RiskscapeException
nz.org.riskscape.engine.rl.EvalException
- All Implemented Interfaces:
Serializable
public class EvalException
extends nz.org.riskscape.engine.RiskscapeException
Thrown by RealizedExpression
when RealizedExpression.evaluate(Object)
fails
- See Also:
-
Constructor Summary
ConstructorDescriptionEvalException
(String message, Throwable cause, nz.org.riskscape.engine.rl.RealizedExpression re, Object input) EvalException
(Throwable cause, nz.org.riskscape.engine.rl.RealizedExpression re, Object input) -
Method Summary
Methods inherited from class nz.org.riskscape.engine.RiskscapeException
getCause, getProblem, hasProblem
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EvalException
-
EvalException
-
-
Method Details
-
getRootCause
- Returns:
- the first exception that isn't an EvalException. This is useful because the chain of EvalExceptions is usually quite deep - and so this will be the first exception that gives the user an idea of what failed, rather than where it failed.
-
getRealizedExpression
public nz.org.riskscape.engine.rl.RealizedExpression getRealizedExpression() -
getInput
-