From 5467e0567ec8736ff3c2424777ea52935ac144c7 Mon Sep 17 00:00:00 2001 From: Christian Oeing Date: Tue, 15 Dec 2020 15:30:13 +0100 Subject: [PATCH] #14 Add causing exception to ExecutionException in BoschHttpClient.sendRequest Signed-off-by: Christian Oeing Signed-off-by: Gerd Zanker --- .../boschshc/internal/devices/bridge/BoschHttpClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.boschshc/src/main/java/org/openhab/binding/boschshc/internal/devices/bridge/BoschHttpClient.java b/bundles/org.openhab.binding.boschshc/src/main/java/org/openhab/binding/boschshc/internal/devices/bridge/BoschHttpClient.java index 95cb062dbad0a..f8f592846256c 100644 --- a/bundles/org.openhab.binding.boschshc/src/main/java/org/openhab/binding/boschshc/internal/devices/bridge/BoschHttpClient.java +++ b/bundles/org.openhab.binding.boschshc/src/main/java/org/openhab/binding/boschshc/internal/devices/bridge/BoschHttpClient.java @@ -185,7 +185,7 @@ public TContent sendRequest(Request request, Class response return content; } catch (JsonSyntaxException e) { throw new ExecutionException(String.format("Received invalid content in response, expected type %s: %s", - responseContentClass.getName(), e.getMessage()), null); + responseContentClass.getName(), e.getMessage()), e); } } }