[bindings a-c] Fix exception handling (Jetty HTTP client) (#10467)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
@@ -90,7 +90,10 @@ public class AutomowerConnectApi extends HusqvarnaApi {
|
||||
ContentResponse response;
|
||||
try {
|
||||
response = request.send();
|
||||
} catch (InterruptedException | TimeoutException | ExecutionException e) {
|
||||
} catch (TimeoutException | ExecutionException e) {
|
||||
throw new AutomowerCommunicationException(e);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new AutomowerCommunicationException(e);
|
||||
}
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user