Sha256: edd5e3bb8d71c5e2524c1fd6988127bbe7ee9bcb1bad2fbf220a07c7ca96de47

Contents?: true

Size: 793 Bytes

Versions: 3

Compression:

Stored size: 793 Bytes

Contents

module RedisCluster
  class CommandNotSupportedError < StandardError
    def initialize(command)
      super("Command #{command} is not supported for Redis Cluster")
    end
  end

  class KeysNotAtSameSlotError < StandardError
    def initialize(keys)
      super("Keys must map to the same Redis Cluster slot when using " \
        "EVAL/EVALSHA. Consider using Redis Cluster 'hash tags' (see " \
        "documentation). Keys: #{keys}")
    end
  end

  class KeysNotSpecifiedError < StandardError
    def initialize(command)
      super("Keys must be specified for command #{command}")
    end
  end

  # These error classes were renamed. These aliases are here for backwards
  # compatibility.
  KeyNotAppointError = KeysNotSpecifiedError
  NotSupportError = CommandNotSupportedError
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redis_cluster-0.3.2 lib/redis_cluster/errors.rb
redis_cluster-0.3.1 lib/redis_cluster/errors.rb
redis_cluster-0.3.0 lib/redis_cluster/errors.rb