code: static SSLHandshakeException toSSLHandshakeException(Throwable e) {
          if (e instanceof SSLHandshakeException) {
              return (SSLHandshakeException) e;
          }
  
          return (SSLHandshakeException) new SSLHandshakeException(e.getMessage()).initCause(e);
      }
docs: Converts the given exception to a {@link SSLHandshakeException}, if it isn't already.