Exception: RedisFailover::MultipleMastersError
- Defined in:
- lib/redis_failover/errors.rb
Overview
Raised when more than one master is found on startup.
Instance Method Summary collapse
-
#initialize(nodes) ⇒ MultipleMastersError
constructor
A new instance of MultipleMastersError.
Constructor Details
#initialize(nodes) ⇒ MultipleMastersError
Returns a new instance of MultipleMastersError.
30 31 32 |
# File 'lib/redis_failover/errors.rb', line 30 def initialize(nodes) super("Multiple nodes with master role: #{nodes.map(&:to_s)}") end |