Exception: AWS::Record::InvalidRecordError
- Inherits:
-
StandardError
- Object
- StandardError
- AWS::Record::InvalidRecordError
- 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
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ InvalidRecordError
constructor
A new instance of InvalidRecordError.
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..join(', ')) end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
33 34 35 |
# File 'lib/aws/record/exceptions.rb', line 33 def record @record end |