Exception: Redlock::LockAcquisitionError

Inherits:
LockError
  • Object
show all
Defined in:
lib/redlock/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, errors) ⇒ LockAcquisitionError

Returns a new instance of LockAcquisitionError.



11
12
13
14
# File 'lib/redlock/client.rb', line 11

def initialize(message, errors)
  super(message)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



9
10
11
# File 'lib/redlock/client.rb', line 9

def errors
  @errors
end