]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.acorn/src/org/simantics/acorn/Persistable.java
Use java.util.Consumer instead of os.utils.datastructures.Callback
[simantics/platform.git] / bundles / org.simantics.acorn / src / org / simantics / acorn / Persistable.java
index 0d209b2b8d744a4d442924179ddece20a5d1a1b2..89574faabe445f70efd4aff3e51c1b15fde40ab4 100644 (file)
@@ -3,9 +3,12 @@ package org.simantics.acorn;
 import java.io.IOException;
 import java.nio.file.Path;
 
+import org.simantics.acorn.exception.AcornAccessVerificationException;
+import org.simantics.acorn.exception.IllegalAcornStateException;
+
 public interface Persistable {
        
        void toFile(Path path) throws IOException ;
-       void fromFile(byte[] data);
+       void fromFile(byte[] data) throws IllegalAcornStateException, AcornAccessVerificationException;
        
 }
\ No newline at end of file