Exception: Dynamoid::Errors::StaleObjectError
- Inherits:
-
ConditionalCheckFailedException
- Object
- StandardError
- Error
- ConditionalCheckFailedException
- Dynamoid::Errors::StaleObjectError
- Defined in:
- lib/dynamoid/errors.rb
Instance Attribute Summary collapse
-
#attempted_action ⇒ Object
readonly
Returns the value of attribute attempted_action.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Attributes inherited from ConditionalCheckFailedException
Instance Method Summary collapse
-
#initialize(record, attempted_action) ⇒ StaleObjectError
constructor
A new instance of StaleObjectError.
Constructor Details
#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 |
Instance Attribute Details
#attempted_action ⇒ Object (readonly)
Returns the value of attribute attempted_action.
54 55 56 |
# File 'lib/dynamoid/errors.rb', line 54 def attempted_action @attempted_action end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
54 55 56 |
# File 'lib/dynamoid/errors.rb', line 54 def record @record end |