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.



47
48
49
50
# File 'lib/dynamoid/errors.rb', line 47

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.



45
46
47
# File 'lib/dynamoid/errors.rb', line 45

def original_exception
  @original_exception
end