
org.molgenis.questionnaires.exception.QuestionnaireNotRowLevelSecuredException Maven / Gradle / Ivy
package org.molgenis.questionnaires.exception;
import org.molgenis.data.meta.model.EntityType;
import org.molgenis.util.exception.CodedRuntimeException;
public class QuestionnaireNotRowLevelSecuredException extends CodedRuntimeException {
private static final String ERROR_CODE = "Q01";
private final transient EntityType questionnaireEntityType;
public QuestionnaireNotRowLevelSecuredException(EntityType questionnaireEntityType) {
super(ERROR_CODE);
this.questionnaireEntityType = questionnaireEntityType;
}
@Override
public String getMessage() {
return String.format("questionaire:%s", questionnaireEntityType.getId());
}
@Override
protected Object[] getLocalizedMessageArguments() {
return new Object[] {questionnaireEntityType.getId()};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy