From 8ea72bd1a327fd19330be5d0abcea852d462a09c Mon Sep 17 00:00:00 2001 From: Ignacio Losiggio Date: Mon, 10 Apr 2023 14:54:26 -0300 Subject: [PATCH 1/2] W-12995290: Show cause when failing to parse a JSON response --- src/main/java/org/mule/module/apikit/odata/util/Helper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mule/module/apikit/odata/util/Helper.java b/src/main/java/org/mule/module/apikit/odata/util/Helper.java index b758b030..81a26ad8 100644 --- a/src/main/java/org/mule/module/apikit/odata/util/Helper.java +++ b/src/main/java/org/mule/module/apikit/odata/util/Helper.java @@ -175,7 +175,7 @@ public static List transformJsonToEntryList(String payload) return entities; } catch (Exception e) { - throw new ODataInvalidFlowResponseException("Flow response is not a valid json"); + throw new ODataInvalidFlowResponseException("Flow response is not a valid json", e); } } From 77f2a359b7654796ed1335c7f7aead4fd92a8397 Mon Sep 17 00:00:00 2001 From: Ignacio Losiggio Date: Mon, 10 Apr 2023 15:00:31 -0300 Subject: [PATCH 2/2] W-12995290: Add missing constructor to ODataInvalidFlowResponseException --- .../odata/exception/ODataInvalidFlowResponseException.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/mule/module/apikit/odata/exception/ODataInvalidFlowResponseException.java b/src/main/java/org/mule/module/apikit/odata/exception/ODataInvalidFlowResponseException.java index 472138c4..656b7421 100644 --- a/src/main/java/org/mule/module/apikit/odata/exception/ODataInvalidFlowResponseException.java +++ b/src/main/java/org/mule/module/apikit/odata/exception/ODataInvalidFlowResponseException.java @@ -17,4 +17,8 @@ public ODataInvalidFlowResponseException(String message) { super(message); } + public ODataInvalidFlowResponseException(String message, Throwable cause) { + super(message, cause); + } + }