]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/internal/IndexingJob.java
Replace instantiations of DatabaseException in indexing
[simantics/platform.git] / bundles / org.simantics.db.indexing / src / org / simantics / db / indexing / internal / IndexingJob.java
index 55cd56cfa3b7225baad12071f4d512263cc9211e..dc8deb29720d0c663b8cffe441629cf070b206ac 100644 (file)
@@ -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);
         }
     }