]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/SyncIntProcedure.java
Generate parts of db client query code
[simantics/platform.git] / bundles / org.simantics.db.impl / src / org / simantics / db / impl / query / SyncIntProcedure.java
index f79910358e1706770f8fb033dcbb39e68de9aeb1..42b0d7a407c2e48d8d38bdcf6f0fe1f92546de3a 100644 (file)
@@ -11,6 +11,7 @@
  *******************************************************************************/
 package org.simantics.db.impl.query;
 
+import org.simantics.db.exception.DatabaseException;
 import org.simantics.db.impl.graph.ReadGraphImpl;
 
 
@@ -29,7 +30,7 @@ abstract public class SyncIntProcedure implements IntProcedure, ThreadRunnable {
 //     barrier.incrementAndGet();
     }
     
-    final protected void dec(ReadGraphImpl graph) {
+    final protected void dec(ReadGraphImpl graph) throws DatabaseException {
 //     System.err.println("dec " + barrier.get());
        if((--barrier) == 0) {
             run(graph);
@@ -37,7 +38,7 @@ abstract public class SyncIntProcedure implements IntProcedure, ThreadRunnable {
     }
     
     @Override
-    public void exception(ReadGraphImpl graph, Throwable t) {
+    public void exception(ReadGraphImpl graph, Throwable t) throws DatabaseException {
        throw new Error("Errors are not supported,", t);
     }