while ((cause = cause.getCause()) != null) { if (cause instanceof SaslException) { throw MESSAGES.authenticationFailureUnableToConnect(cause); } else if (cause instanceof SSLHandshakeException) { throw MESSAGES.sslFailureUnableToConnect(cause);
while ((cause = cause.getCause()) != null) { if (cause instanceof SaslException) { throw MESSAGES.authenticationFailureUnableToConnect(cause); } else if (cause instanceof SSLHandshakeException) { throw MESSAGES.sslFailureUnableToConnect(cause);