Exception: Dynamoid::Errors::StaleObjectError

Inherits:
ConditionalCheckFailedException show all
Defined in:
lib/dynamoid/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ConditionalCheckFailedException

#inner_exception

Instance Method Summary collapse

Constructor Details

#initialize(record, attempted_action) ⇒ StaleObjectError

Returns a new instance of StaleObjectError.



66
67
68
69
70
# File 'lib/dynamoid/errors.rb', line 66

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

Instance Attribute Details

#attempted_actionObject (readonly)

Returns the value of attribute attempted_action.



64
65
66
# File 'lib/dynamoid/errors.rb', line 64

def attempted_action
  @attempted_action
end

#recordObject (readonly)

Returns the value of attribute record.



64
65
66
# File 'lib/dynamoid/errors.rb', line 64

def record
  @record
end