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

org.molgenis.questionnaires.exception.QuestionnaireNotRowLevelSecuredException Maven / Gradle / Ivy

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()};
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy