[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 {
|
try {
|
||||||
response = httpClient.execute(request);
|
response = httpClient.execute(request);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new HttpClientException(e);
|
throw new HttpClientException(request.getURI().toASCIIString(), e);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
request.abort();
|
request.abort();
|
||||||
throw new HttpClientException(e);
|
throw new HttpClientException(request.getURI().toASCIIString(), e);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue