Method: Dynamoid::Errors::StaleObjectError#initialize

Defined in:
lib/dynamoid/errors.rb

#initialize(record, attempted_action) ⇒ StaleObjectError

Returns a new instance of StaleObjectError.



56
57
58
59
60
# File 'lib/dynamoid/errors.rb', line 56

def initialize(record, attempted_action)
  super("Attempted to #{attempted_action} a stale object #{record}")
  @record = record
  @attempted_action = attempted_action
end