Sha256: 0839bc8f3665197fb9dbbd8c8f17e817ed958cf0b6988d4694159311a85f21fe
Contents?: true
Size: 807 Bytes
Versions: 2
Compression:
Stored size: 807 Bytes
Contents
module RedisFailover class Error < StandardError end class InvalidNodeError < Error end class InvalidNodeStateError < Error def initialize(node, state) super("Invalid state change `#{state}` for node #{node}") end end class NodeUnreachableError < Error def initialize(node) super("Node: #{node}") end end class NoMasterError < Error end class NoSlaveError < Error end class FailoverServerUnreachableError < Error def initialize(failover_server_url) super("Unable to reach #{failover_server_url}") end end class InvalidNodeRoleError < Error 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redis_failover-0.3.0 | lib/redis_failover/errors.rb |
redis_failover-0.2.0 | lib/redis_failover/errors.rb |