Exception: Redis::Cluster::OrchestrationCommandNotSupported
- Inherits:
-
BaseError
- Object
- RuntimeError
- BaseError
- Redis::Cluster::OrchestrationCommandNotSupported
- Defined in:
- lib/redis/errors.rb
Overview
Raised when client connected to redis as cluster mode and some cluster subcommands were called.
Instance Method Summary collapse
-
#initialize(command, subcommand = '') ⇒ OrchestrationCommandNotSupported
constructor
A new instance of OrchestrationCommandNotSupported.
Constructor Details
#initialize(command, subcommand = '') ⇒ OrchestrationCommandNotSupported
Returns a new instance of OrchestrationCommandNotSupported.
50 51 52 53 54 55 56 57 |
# File 'lib/redis/errors.rb', line 50 def initialize(command, subcommand = '') str = [command, subcommand].map(&:to_s).reject(&:empty?).join(' ').upcase msg = "#{str} command should be used with care "\ 'only by applications orchestrating Redis Cluster, like redis-trib, '\ '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 |