Class: RedisClient::Cluster::OrchestrationCommandNotSupported
- Defined in:
- lib/redis_client/cluster/errors.rb
Class Method Summary collapse
Methods inherited from Error
Class Method Details
.from_command(command) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/redis_client/cluster/errors.rb', line 26 def self.from_command(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.' new(msg) end |