[OLINGO-1238]Code Improvements in handling exceptions
This commit is contained in:
parent
6a35dd0d58
commit
a7f98f8842
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue