X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.indexing%2Fsrc%2Forg%2Fsimantics%2Fdb%2Findexing%2Finternal%2FIndexingJob.java;h=dc8deb29720d0c663b8cffe441629cf070b206ac;hp=55cd56cfa3b7225baad12071f4d512263cc9211e;hb=b14aabb9b1160cbbadef994db5778a45a13f5533;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07 diff --git a/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/internal/IndexingJob.java b/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/internal/IndexingJob.java index 55cd56cfa..dc8deb297 100644 --- a/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/internal/IndexingJob.java +++ b/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/internal/IndexingJob.java @@ -18,6 +18,7 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.jobs.Job; import org.simantics.db.exception.DatabaseException; import org.simantics.db.function.DbConsumer; +import org.simantics.db.indexing.exception.IndexingException; /** * @author Tuukka Lehtonen @@ -80,12 +81,12 @@ public abstract class IndexingJob extends Job { try { barrier.acquire(); if (err[0] != null) { - if (err[0] instanceof DatabaseException) + if (err[0] instanceof IndexingException) throw (DatabaseException) err[0]; - throw new DatabaseException(err[0]); + throw new IndexingException(err[0]); } } catch (InterruptedException e) { - throw new DatabaseException(e); + throw new IndexingException(e); } }