From a7f98f8842856319809db32b16c88354993b4178 Mon Sep 17 00:00:00 2001 From: ramya vasanth Date: Thu, 20 Feb 2020 09:40:03 +0530 Subject: [PATCH] [OLINGO-1238]Code Improvements in handling exceptions --- .../core/communication/request/AbstractODataRequest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractODataRequest.java b/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractODataRequest.java index 0e8ea247a..342c4c83d 100644 --- a/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractODataRequest.java +++ b/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractODataRequest.java @@ -306,10 +306,10 @@ public abstract class AbstractODataRequest extends AbstractRequest implements OD try { response = httpClient.execute(request); } catch (IOException e) { - throw new HttpClientException(e); + throw new HttpClientException(request.getURI().toASCIIString(), e); } catch (RuntimeException e) { request.abort(); - throw new HttpClientException(e); + throw new HttpClientException(request.getURI().toASCIIString(), e); } try {