From 9c1b0bdc646d2e91526e49fd9233c2eb0c243019 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Thu, 8 Mar 2018 16:42:07 +0200 Subject: [PATCH] Restored old NoSingleResultException constructors without result count Don't break backwards compatibility. refs #7803 Change-Id: I33a88f002bedb79202176860d65cb77bf43aab4a --- .../db/exception/NoSingleResultException.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/bundles/org.simantics.db/src/org/simantics/db/exception/NoSingleResultException.java b/bundles/org.simantics.db/src/org/simantics/db/exception/NoSingleResultException.java index 500964242..c39a13526 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/exception/NoSingleResultException.java +++ b/bundles/org.simantics.db/src/org/simantics/db/exception/NoSingleResultException.java @@ -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; -- 2.47.1