Class: RedisClient::Cluster::OrchestrationCommandNotSupported
- Inherits:
-
Error
- Object
- Error
- RedisClient::Cluster::OrchestrationCommandNotSupported
- Defined in:
- lib/redis_client/cluster/errors.rb
Instance Method Summary collapse
-
#initialize(command) ⇒ OrchestrationCommandNotSupported
constructor
A new instance of OrchestrationCommandNotSupported.
Constructor Details
#initialize(command) ⇒ OrchestrationCommandNotSupported
Returns a new instance of OrchestrationCommandNotSupported.
17 18 19 20 21 22 23 24 |
# File 'lib/redis_client/cluster/errors.rb', line 17 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 |