berlin.yuna.survey.model.exception.QuestionNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of surveys Show documentation
Show all versions of surveys Show documentation
Survey is a plain java library to provide a base for surveys / questionnaires. It also provides a
function to generate diagrams and to measure answer times.
The newest version!
package berlin.yuna.survey.model.exception;
@SuppressWarnings({"unused", "UnusedReturnValue"})
public class QuestionNotFoundException extends FlowRuntimeException {
public static QuestionNotFoundException itemNotFoundInHistory(final String label, final String flow) {
return new QuestionNotFoundException(label, flow, "History item [" + label + "] was not found in flow [" + flow + "]");
}
public static QuestionNotFoundException itemNotFound(final String label, final String flow, final String message) {
return new QuestionNotFoundException(label, flow, message == null ? "Flow item [" + label + "] was not found" : message);
}
public static QuestionNotFoundException itemNotFound(final String label, final String flow) {
return itemNotFound(label, flow, null);
}
public QuestionNotFoundException(final String label, final String flow, final String message) {
super(label, flow, message);
}
}