org.molgenis.data.security.exception.SidPermissionException 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;
@SuppressWarnings("squid:MaximumInheritanceDepth")
public class SidPermissionException extends PermissionDeniedException {
private static final String ERROR_CODE = "DS25";
private final String sids;
public SidPermissionException(String sids) {
super(ERROR_CODE);
this.sids = requireNonNull(sids);
}
@Override
public String getMessage() {
return String.format("sids:%s", sids);
}
@Override
protected Object[] getLocalizedMessageArguments() {
return new Object[] {sids};
}
}