code: public static RedisConnectionException create(String remoteAddress, Throwable cause) {
  
          if (remoteAddress == null) {
  
              if (cause instanceof RedisConnectionException) {
                  return new RedisConnectionException(cause.getMessage(), cause.getCause());
              }
  
              return new RedisConnectionException(null, cause);
          }
  
          return new RedisConnectionException(String.format("Unable to connect to %s", remoteAddress), cause);
      }
docs: Create a new {@link RedisConnectionException} given {@code remoteAddress} and the {@link Throwable cause}.
  
  @param remoteAddress remote address.
  @param cause the nested exception.
  @return the {@link RedisConnectionException}.
  @since 5.1