Skip to content

Commit c0692bc

Browse files
committed
Clean wrap of expection in the internal layer.
1 parent cf0887e commit c0692bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,10 @@ public ClassicHttpResponse executeRequest(Endpoint server, Map<String, Object> r
425425

426426
} catch (UnknownHostException e) {
427427
LOG.warn("Host '{}' unknown", server.getBaseURL());
428-
throw new ConnectionInitiationException("Unknown host", e);
428+
throw e;
429429
} catch (ConnectException | NoRouteToHostException e) {
430430
LOG.warn("Failed to connect to '{}': {}", server.getBaseURL(), e.getMessage());
431-
throw new ConnectionInitiationException("Failed to connect", e);
431+
throw e;
432432
}
433433
}
434434

0 commit comments

Comments
 (0)