]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterUpdateProcessorBase2.java
Acorn: Fix WriteRunnable.runReally() and other fixes
[simantics/platform.git] / bundles / org.simantics.acorn / src / org / simantics / acorn / internal / ClusterUpdateProcessorBase2.java
index e821b46eb10eae6871ee9b3c3de5fb8c135e0a26..502729c0bab20982ab82100038898dc815e47be5 100644 (file)
@@ -1,5 +1,6 @@
 package org.simantics.acorn.internal;
 
+import org.simantics.acorn.exception.IllegalAcornStateException;
 import org.simantics.db.service.Bytes;
 import org.simantics.db.service.ClusterUID;
 
@@ -35,7 +36,7 @@ public abstract class ClusterUpdateProcessorBase2 {
                pos+=4;
        }
 
-       public void process() {
+       public void process() throws IllegalAcornStateException {
                
                while(pos < len) {
                
@@ -50,12 +51,10 @@ public abstract class ClusterUpdateProcessorBase2 {
                                processUndoValue(op);
                                break;
                        default:
-                               throw new IllegalStateException();
+                               throw new IllegalAcornStateException("Can not process cluster " + uid);
                                
                        }
-                       
                }
-               
        }
        
        abstract void setImmutable(boolean value);