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

org.molgenis.data.security.exception.SystemRlsModificationException Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.data.security.exception;

import static java.util.Objects.requireNonNull;

import org.molgenis.util.exception.ForbiddenException;

@SuppressWarnings("squid:MaximumInheritanceDepth")
public class SystemRlsModificationException extends ForbiddenException {
  private static final String ERROR_CODE = "DS34";
  private final String entityType;

  public SystemRlsModificationException(String entityType) {
    super(ERROR_CODE);

    this.entityType = requireNonNull(entityType);
  }

  @Override
  public String getMessage() {
    return String.format("entityType:%s", entityType);
  }

  @Override
  protected Object[] getLocalizedMessageArguments() {
    return new Object[] {entityType};
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy