Exception: RedisFailover::InvalidNodeRoleError
- 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
-
#initialize(node, assumed, actual) ⇒ InvalidNodeRoleError
constructor
A new instance of InvalidNodeRoleError.
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 |