Exception: RedisFailover::InvalidNodeRoleError

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

Overview

Raised when a redis server is no longer using the same role as previously assumed.

Instance Method Summary collapse

Constructor Details

#initialize(node, assumed, actual) ⇒ InvalidNodeRoleError

Returns a new instance of InvalidNodeRoleError.



42
43
44
45
# File 'lib/redis_failover/errors.rb', line 42

def initialize(node, assumed, actual)
  super("Invalid role detected for node #{node}, client thought " +
    "it was a #{assumed}, but it's now a #{actual}")
end