org.molgenis.data.security.exception.SystemRlsModificationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-data-security Show documentation
Show all versions of molgenis-data-security Show documentation
Security data model and data layer security.
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};
}
}