org.molgenis.data.index.exception.UnknownIndexException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-data-index Show documentation
Show all versions of molgenis-data-index Show documentation
Data layer indexing framework.
package org.molgenis.data.index.exception;
import static java.util.Arrays.stream;
import static java.util.stream.Collectors.joining;
/**
* @deprecated use class that extends from {@link org.molgenis.i18n.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(", "))));
}
}