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

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

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

import static java.util.Objects.requireNonNull;

@SuppressWarnings("squid:MaximumInheritanceDepth")
public class UnknownRepositoryCollectionException extends UnknownDataException {
  private static final String ERROR_CODE = "D06";

  private final String repositoryCollectionId;

  public UnknownRepositoryCollectionException(String repositoryCollectionId) {
    super(ERROR_CODE);
    this.repositoryCollectionId = requireNonNull(repositoryCollectionId);
  }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy