All Downloads are FREE. Search and download functionalities are using the official Maven repository.

berlin.yuna.survey.model.exception.QuestionNotFoundException Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.1.110
Show 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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy