static SSLHandshakeException toSSLHandshakeException(Throwable e) {
        if (e instanceof SSLHandshakeException) {
            return (SSLHandshakeException) e;
        }

        return (SSLHandshakeException) new SSLHandshakeException(e.getMessage()).initCause(e);
    }
Wraps the given exception if it's not already a {@link SSLHandshakeException}.
common/src/main/java/org/conscrypt/SSLUtils.java