Exception: AWS::Record::InvalidRecordError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aws/record/exceptions.rb

Overview

Raised when calling #save! or #update_attributes! on a record that has validation errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ InvalidRecordError

Returns a new instance of InvalidRecordError.



29
30
31
32
# File 'lib/aws/record/exceptions.rb', line 29

def initialize record
  @record = record
  super(record.errors.full_messages.join(', '))
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



33
34
35
# File 'lib/aws/record/exceptions.rb', line 33

def record
  @record
end