code: public static RedisConnectionException create(Throwable cause) {
  
          if (cause instanceof RedisConnectionException) {
              return new RedisConnectionException(cause.getMessage(), cause.getCause());
          }
  
          return new RedisConnectionException("Unable to connect", cause);
      }
docs: Create a new {@link RedisConnectionException} given {@link Throwable cause}.
  
  @param cause the exception.
  @return the {@link RedisConnectionException}.
  @since 5.1