X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FAbstractConstantPropertyVariable.java;h=f2b7ff47b7919b60340614df48cb57d1f5672719;hp=aa665cf61701f3a67d06814a52cecccd13cf69a0;hb=1ecae6e1ad40507badb8807fb14bb67b4adf199c;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07 diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractConstantPropertyVariable.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractConstantPropertyVariable.java index aa665cf61..f2b7ff47b 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractConstantPropertyVariable.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractConstantPropertyVariable.java @@ -12,6 +12,7 @@ import org.simantics.db.ReadGraph; import org.simantics.db.Resource; import org.simantics.db.WriteGraph; import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.exception.NonWritableVariableException; import org.simantics.utils.ObjectUtils; abstract public class AbstractConstantPropertyVariable extends AbstractPropertyVariable { @@ -40,9 +41,8 @@ abstract public class AbstractConstantPropertyVariable extends AbstractPropertyV } @Override - public void setValue(WriteGraph graph, Object value, Binding binding) - throws DatabaseException { - throw new DatabaseException("Value is constant."); + public void setValue(WriteGraph graph, Object value, Binding binding) throws DatabaseException { + throw new NonWritableVariableException("Value is constant."); } @Override