Open
Description
Query/Question
When the Java Key Vault client fails while sending a HTTP request, it captures the exception, writes a log about the failure, and continues execution. Is it proper design to swallow the exception without giving the calling code ability to handle the exception?
try (CloseableHttpClient client = buildClient()) {
HttpGet httpGet = new HttpGet(url);
if (headers != null) {
headers.forEach(httpGet::addHeader);
}
httpGet.addHeader(USER_AGENT_KEY, USER_AGENT_VALUE);
result = client.execute(httpGet, createResponseHandler());
} catch (IOException ioe) {
LOGGER.log(WARNING, "Unable to finish the http get request.", ioe);
}
Why is this not a Bug or a feature Request?
It is unclear if this is by-design or a bug.
Setup (please complete the following information if applicable):
- Library/Libraries: Azure SDK for Java / Azure Key Vault
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- [X ] Query Added
- [X ] Setup information Added
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo
Status
Not Started