Exception: Redis::Cluster::CommandErrorCollection

Inherits:
BaseError
  • Object
show all
Defined in:
lib/redis/errors.rb

Overview

Raised when error occurs on any node of cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors, error_message = 'Command errors were replied on any node') ⇒ CommandErrorCollection

Returns a new instance of CommandErrorCollection.

Parameters:

  • errors (Hash{String => Redis::CommandError})
  • error_message (String) (defaults to: 'Command errors were replied on any node')


76
77
78
79
# File 'lib/redis/errors.rb', line 76

def initialize(errors, error_message = 'Command errors were replied on any node')
  @errors = errors
  super(error_message)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



72
73
74
# File 'lib/redis/errors.rb', line 72

def errors
  @errors
end