X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.acorn%2Fsrc%2Forg%2Fsimantics%2Facorn%2FPersistable.java;h=89574faabe445f70efd4aff3e51c1b15fde40ab4;hp=0d209b2b8d744a4d442924179ddece20a5d1a1b2;hb=56a799c9b7d395cefb59e101cd0f7ce8d68f88e6;hpb=358e725094fd65a92800cdea4d77d9874be022d8 diff --git a/bundles/org.simantics.acorn/src/org/simantics/acorn/Persistable.java b/bundles/org.simantics.acorn/src/org/simantics/acorn/Persistable.java index 0d209b2b8..89574faab 100644 --- a/bundles/org.simantics.acorn/src/org/simantics/acorn/Persistable.java +++ b/bundles/org.simantics.acorn/src/org/simantics/acorn/Persistable.java @@ -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