From: Tuukka Lehtonen Date: Thu, 30 Aug 2018 05:19:13 +0000 (+0300) Subject: Restored MissingVariableException (String) constructor X-Git-Tag: v1.43.0~136^2~392 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=a22c5a8681859b6518017f3ad2be7e9319a6695e;p=simantics%2Fplatform.git Restored MissingVariableException (String) constructor The previous change to this caused needless breakage with little gain. gitlab #92 Change-Id: Ic7825a5bfdbcbe8438f70501eebd26c82d733bd7 --- diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/exception/MissingVariableException.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/exception/MissingVariableException.java index 90be7c061..db3d71a06 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/exception/MissingVariableException.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/exception/MissingVariableException.java @@ -20,6 +20,11 @@ public class MissingVariableException extends VariableException { private final Resource resource; + public MissingVariableException(String message) { + super(message); + this.resource = null; + } + public MissingVariableException(String message, Resource resource) { super(message + " " + String.valueOf(resource)); this.resource = resource;