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