org.molgenis.questionnaires.exception.QuestionnaireNotRowLevelSecuredException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-questionnaires Show documentation
Show all versions of molgenis-questionnaires Show documentation
Plugin module for gathering information from respondents using series of questions.
The newest version!
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()};
}
}