Skip to content

Commit 2fcf119

Browse files
committed
address comments
1 parent 798ee39 commit 2fcf119

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/databricks/jdbc/dbclient/impl/http/DatabricksHttpClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ private PoolingHttpClientConnectionManager initializeConnectionManager(
133133
return connectionManager;
134134
} catch (DatabricksHttpException e) {
135135
LOGGER.error("Failed to initialize HTTP connection manager", e);
136-
throw new RuntimeException("Failed to initialize HTTP connection manager", e);
136+
// Currently only SSL Handshake failure causes this exception.
137+
throw new DatabricksDriverException("Failed to initialize HTTP connection manager", DatabricksDriverErrorCode.SSL_HANDSHAKE_ERROR);
137138
}
138139
}
139140

0 commit comments

Comments
 (0)