Restored old NoSingleResultException constructors without result count
[simantics/platform.git] / 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;