*******************************************************************************/
package org.simantics.db.indexing;
-import gnu.trove.map.hash.THashMap;
-
import java.util.Collections;
import java.util.EnumSet;
import java.util.Map;
import org.simantics.db.common.request.UniqueRead;
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.exception.RuntimeDatabaseException;
+import org.simantics.db.indexing.exception.IndexingException;
import org.simantics.db.layer0.adapter.GenericRelation;
import org.simantics.utils.datastructures.Pair;
+import gnu.trove.map.hash.THashMap;
+
/**
* @author Tuukka Lehtonen
* @since 1.20.0, 1.18.4
GenericRelation r = graph.adapt(relation, GenericRelation.class);
return new IndexSchema( r.getFields() );
} catch (IllegalArgumentException e) {
- throw new DatabaseException(
- "Failed to read index schema for relation " + relation + ". See cause for reason.", e);
+ throw new IndexingException("Failed to read index schema for relation " + relation + ". See cause for reason.", e);
}
}