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.
51 52 53 54 55 56 57 58 |
# File 'lib/redis/errors.rb', line 51 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 |