Package nz.org.riskscape.wizard.bld
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 Summary
ConstructorDescriptionInvalidAnswerException
(PipelineChangeInput input, List<nz.org.riskscape.problem.Problem> childProblems) InvalidAnswerException
(PipelineChangeInput input, nz.org.riskscape.problem.Problem... problems) -
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
-
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
-
getBuildState
-
getAnswer
-