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

org.molgenis.data.UnknownRepositoryException Maven / Gradle / Ivy

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

import static java.util.Objects.requireNonNull;

/** @see Repository */
@SuppressWarnings({"squid:MaximumInheritanceDepth", "squid:S2166"})
public class UnknownRepositoryException extends UnknownDataException {
  private static final String ERROR_CODE = "D05";

  private final String repositoryId;

  public UnknownRepositoryException(String repositoryId) {
    super(ERROR_CODE);
    this.repositoryId = requireNonNull(repositoryId);
  }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy