[bindings a-c] Fix exception handling (Jetty HTTP client) (#10467)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
@@ -242,9 +242,13 @@ public class FritzAhaWebInterface {
|
||||
String content = contentResponse.getContentAsString();
|
||||
logger.debug("GET response complete: {}", content);
|
||||
return content;
|
||||
} catch (ExecutionException | InterruptedException | TimeoutException e) {
|
||||
} catch (ExecutionException | TimeoutException e) {
|
||||
logger.debug("response failed: {}", e.getLocalizedMessage(), e);
|
||||
return null;
|
||||
} catch (InterruptedException e) {
|
||||
logger.debug("response interrupted: {}", e.getLocalizedMessage(), e);
|
||||
Thread.currentThread().interrupt();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user