Class: RedisClient::Cluster::InitialSetupError

Inherits:
Error
  • Object
show all
Defined in:
lib/redis_client/cluster/errors.rb

Overview

Raised when client connected to redis as cluster mode and failed to fetch cluster state information by commands.

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InitialSetupError

Returns a new instance of InitialSetupError.



12
13
14
15
# File 'lib/redis_client/cluster/errors.rb', line 12

def initialize(errors)
  msg = ERR_ARG_NORMALIZATION.call(errors).map(&:message).uniq.join(',')
  super("Redis client could not fetch cluster information: #{msg}")
end