Exception: Dynamoid::Errors::RecordNotUnique

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(original_exception, record) ⇒ RecordNotUnique

Returns a new instance of RecordNotUnique.



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

def initialize(original_exception, record)
  super("Attempted to write record #{record} when its key already exists")
  @original_exception = original_exception
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



55
56
57
# File 'lib/dynamoid/errors.rb', line 55

def original_exception
  @original_exception
end