]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Restored old NoSingleResultException constructors without result count 38/1538/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 8 Mar 2018 14:42:07 +0000 (16:42 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 8 Mar 2018 14:42:07 +0000 (16:42 +0200)
Don't break backwards compatibility.

refs #7803

Change-Id: I33a88f002bedb79202176860d65cb77bf43aab4a

bundles/org.simantics.db/src/org/simantics/db/exception/NoSingleResultException.java

index 500964242d1a9db2724a6f567777ff2d9debd02b..c39a13526153029e6276862e85be99be3d6c7950 100644 (file)
@@ -19,6 +19,26 @@ public class NoSingleResultException extends AssumptionException {
 
     private final int resultCount;
 
+    public NoSingleResultException(String message, Throwable cause) {
+        super(message, cause);
+        this.resultCount = -1;
+    }
+
+    public NoSingleResultException(String message, int ... rs) {
+        super(message, rs);
+        this.resultCount = -1;
+    }
+
+    public NoSingleResultException(String message) {
+        super(message);
+        this.resultCount = -1;
+    }
+
+    public NoSingleResultException(String message, Resource ... resources) {
+        super(message, resources);
+        this.resultCount = -1;
+    }
+
     public NoSingleResultException(String message, int resultCount, Throwable cause) {
         super(message + " [resultCount=" + resultCount + "]", cause);
         this.resultCount = resultCount;