Class InvalidAnswerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nz.org.riskscape.engine.RiskscapeException
nz.org.riskscape.wizard.bld.InvalidAnswerException
All Implemented Interfaces:
Serializable

public class InvalidAnswerException extends nz.org.riskscape.engine.RiskscapeException

Thrown when we cannot generate a PipelineChange because the user has supplied an invalid response. This is always a user error, as opposed to BadPipelineChangeException, which is a survey coding error

This class can be useful when: - the user has given us a hand-grenade that will explode further down the line, for somewhat unrelated questions. - we can provide a much simpler, clearer error message than realizing a bad expression/step would.

See Also:
  • Constructor Details

    • InvalidAnswerException

      public InvalidAnswerException(PipelineChangeInput input, List<nz.org.riskscape.problem.Problem> childProblems)
    • InvalidAnswerException

      public InvalidAnswerException(PipelineChangeInput input, nz.org.riskscape.problem.Problem... problems)
  • Method Details