Class: RedisClient::Cluster::OrchestrationCommandNotSupported

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

Overview

Raised when client connected to redis as cluster mode and some cluster subcommands were called.

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ OrchestrationCommandNotSupported

Returns a new instance of OrchestrationCommandNotSupported.



21
22
23
24
25
26
27
28
# File 'lib/redis_client/cluster/errors.rb', line 21

def initialize(command)
  str = ERR_ARG_NORMALIZATION.call(command).map(&:to_s).join(' ').upcase
  msg = "#{str} command should be used with care "\
        'only by applications orchestrating Redis Cluster, like redis-cli, '\
        'and the command if used out of the right context can leave the cluster '\
        'in a wrong state or cause data loss.'
  super(msg)
end