code: void noteHandshakeError(Exception failure) {
          numberOfLogEntries++;
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "noteHandshakeError (" + numberOfLogEntries + "): " + failure.getMessage(), failure);
          }
          if (shouldLogError) {
              if (numberOfLogEntries <= maxLogEntries) {
                  Tr.error(tc, SSLChannelConstants.HANDSHAKE_FAILURE, failure);
              } else if (!loggingStopped && (numberOfLogEntries > maxLogEntries)) {
                  loggingStopped = true;
                  Tr.info(tc, SSLChannelConstants.HANDSHAKE_FAILURE_STOP_LOGGING);
              }
          }
      }
docs: This method should be called when an SSL handshake error occurs. It will
  determine if an error messages should be logged, and log it if necessary.
  <p>
  Note that a debug message containing the failure will be issued if debug
  is enabled, regardless of the error message being printed.
  
  @param failure Exception which resulted from the JSSE during the SSL handshake. {@code null} is not supported.