]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Restored MissingVariableException (String) constructor 53/2053/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 30 Aug 2018 05:19:13 +0000 (08:19 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 30 Aug 2018 05:19:13 +0000 (08:19 +0300)
The previous change to this caused needless breakage with little gain.

gitlab #92

Change-Id: Ic7825a5bfdbcbe8438f70501eebd26c82d733bd7

bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/exception/MissingVariableException.java

index 90be7c061bafa9d1063c2a12661d4d11c36ad200..db3d71a06135549b2378b961982d902d231f784e 100644 (file)
@@ -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;