Exception: AWS::Record::EmptyRecordError

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

Overview

Raised when trying to persist a record that has no attribute values to persist.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ EmptyRecordError

Returns a new instance of EmptyRecordError.


40
41
42
43
# File 'lib/aws/record/exceptions.rb', line 40

def initialize record
  @record = record
  super('unable persist empty records')
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record


44
45
46
# File 'lib/aws/record/exceptions.rb', line 44

def record
  @record
end