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