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

org.molgenis.data.security.exception.AclClassAlreadyExistsException 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.data.DataAlreadyExistsException;

@SuppressWarnings("squid:MaximumInheritanceDepth")
public class AclClassAlreadyExistsException extends DataAlreadyExistsException {
  private static final String ERROR_CODE = "DS29";

  private final String typeId;

  public AclClassAlreadyExistsException(String typeId) {
    super(ERROR_CODE);
    this.typeId = requireNonNull(typeId);
  }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy