4949import javax .net .ssl .SSLHandshakeException ;
5050import javax .net .ssl .TrustManagerFactory ;
5151import org .pkl .core .util .ErrorMessages ;
52- import org .pkl .core .util .ExceptionUtils ;
52+ import org .pkl .core .util .Exceptions ;
5353
5454@ ThreadSafe
5555final class JdkHttpClient implements HttpClient {
@@ -94,7 +94,7 @@ public <T> HttpResponse<T> send(HttpRequest request, BodyHandler<T> responseBody
9494 } catch (SSLHandshakeException e ) {
9595 throw new SSLHandshakeException (
9696 ErrorMessages .create (
97- "errorSslHandshake" , request .uri ().getHost (), ExceptionUtils .getRootReason (e )));
97+ "errorSslHandshake" , request .uri ().getHost (), Exceptions .getRootReason (e )));
9898 } catch (InterruptedException e ) {
9999 // next best thing after letting (checked) InterruptedException bubble up
100100 Thread .currentThread ().interrupt ();
@@ -140,7 +140,7 @@ private static SSLContext createSslContext(
140140 return sslContext ;
141141 } catch (GeneralSecurityException e ) {
142142 throw new HttpClientInitException (
143- ErrorMessages .create ("cannotInitHttpClient" , ExceptionUtils .getRootReason (e )), e );
143+ ErrorMessages .create ("cannotInitHttpClient" , Exceptions .getRootReason (e )), e );
144144 }
145145 }
146146
@@ -155,7 +155,7 @@ private static Set<TrustAnchor> createTrustAnchors(
155155 throw new HttpClientInitException (ErrorMessages .create ("cannotFindCertFile" , file ));
156156 } catch (IOException e ) {
157157 throw new HttpClientInitException (
158- ErrorMessages .create ("cannotReadCertFile" , ExceptionUtils .getRootReason (e )));
158+ ErrorMessages .create ("cannotReadCertFile" , Exceptions .getRootReason (e )));
159159 }
160160 }
161161
@@ -164,7 +164,7 @@ private static Set<TrustAnchor> createTrustAnchors(
164164 collectTrustAnchors (anchors , factory , stream , url );
165165 } catch (IOException e ) {
166166 throw new HttpClientInitException (
167- ErrorMessages .create ("cannotReadCertFile" , ExceptionUtils .getRootReason (e )));
167+ ErrorMessages .create ("cannotReadCertFile" , Exceptions .getRootReason (e )));
168168 }
169169 }
170170
@@ -182,7 +182,7 @@ private static void collectTrustAnchors(
182182 certificates = (Collection <X509Certificate >) factory .generateCertificates (stream );
183183 } catch (CertificateException e ) {
184184 throw new HttpClientInitException (
185- ErrorMessages .create ("cannotParseCertFile" , source , ExceptionUtils .getRootReason (e )));
185+ ErrorMessages .create ("cannotParseCertFile" , source , Exceptions .getRootReason (e )));
186186 }
187187 if (certificates .isEmpty ()) {
188188 throw new HttpClientInitException (ErrorMessages .create ("emptyCertFile" , source ));
0 commit comments