Exception: Dynamoid::Errors::RecordNotDestroyed

Inherits:
Error
  • Object
show all
Defined in:
lib/dynamoid/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ RecordNotDestroyed

Returns a new instance of RecordNotDestroyed.



38
39
40
41
# File 'lib/dynamoid/errors.rb', line 38

def initialize(record)
  super('Failed to destroy the item')
  @record = record
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



36
37
38
# File 'lib/dynamoid/errors.rb', line 36

def record
  @record
end