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 Details

    • EvalException

      public EvalException(String message, Throwable cause, nz.org.riskscape.engine.rl.RealizedExpression re, Object input)
    • EvalException

      public EvalException(Throwable cause, nz.org.riskscape.engine.rl.RealizedExpression re, Object input)
  • Method Details

    • getRootCause

      public Throwable 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

      public Object getInput()