Sha256: 35225f170ba963e10581cc467ddad7c9ee6242482804a0f1632eb55cc9028a81

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redis_failover-0.1.1 lib/redis_failover/errors.rb
redis_failover-0.1.0 lib/redis_failover/errors.rb