[bindings d-e] Fix exception handling (Jetty HTTP client) (#10476)
Fixes #10474 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
@@ -160,9 +160,13 @@ public class EnturNoConnection {
|
||||
String errorMessage = e.getLocalizedMessage();
|
||||
logger.debug("Exception occurred during execution: {}", errorMessage, e);
|
||||
throw new EnturCommunicationException(errorMessage, e);
|
||||
} catch (InterruptedException | TimeoutException | IOException e) {
|
||||
} catch (TimeoutException | IOException e) {
|
||||
logger.debug("Exception occurred during execution: {}", e.getLocalizedMessage(), e);
|
||||
throw new EnturCommunicationException(e.getLocalizedMessage(), e);
|
||||
} catch (InterruptedException e) {
|
||||
logger.debug("Execution interrupted: {}", e.getLocalizedMessage(), e);
|
||||
Thread.currentThread().interrupt();
|
||||
throw new EnturCommunicationException(e.getLocalizedMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user