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

org.molgenis.data.index.exception.UnknownIndexException Maven / Gradle / Ivy

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

import static java.util.Arrays.stream;
import static java.util.stream.Collectors.joining;

import org.molgenis.util.exception.CodedRuntimeException;

/** @deprecated use class that extends from {@link CodedRuntimeException} */
@Deprecated
public class UnknownIndexException extends IndexException {
  private static final long serialVersionUID = 1L;

  public UnknownIndexException(String indexName) {
    super(String.format("Index '%s' not found.", indexName));
  }

  public UnknownIndexException(String[] indexNames) {
    super(
        String.format(
            "One or more indexes '%s' not found.", stream(indexNames).collect(joining(", "))));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy