Skip to content

Commit 3df5d4e

Browse files
committed
Change to less specific Exception
1 parent 81272a8 commit 3df5d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/osrm/client/OSRMClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public OSRMDistanceResponse getDistanceMatrix(List<GeoLocation> locations, doubl
6363
Response response = client.newCall(request).execute();
6464
osrmDistanceResponse = OSRMDistanceResponse.fromJSON(response.body().string());
6565
}
66-
catch(IOException e) {
66+
catch(Exception e) {
6767
System.out.print(e.getMessage());
6868
throw new OptimizationDistanceMatrixException("Error while connecting to osrm server");
6969
}

0 commit comments

Comments
 (0)