org.molgenis.data.index.exception.UnknownIndexException Maven / Gradle / Ivy
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(", "))));
}
}