Exception: RedisFailover::MultipleMastersError

Inherits:
Error
  • Object
show all
Defined in:
lib/redis_failover/errors.rb

Overview

Raised when more than one master is found on startup.

Instance Method Summary collapse

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