Exception: OceanDynamo::RecordInvalid

Inherits:
DynamoError
  • Object
show all
Defined in:
lib/ocean-dynamo/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ RecordInvalid

:nodoc:



23
24
25
26
27
# File 'lib/ocean-dynamo/exceptions.rb', line 23

def initialize(record) # :nodoc:
  @record = record
  errors = @record.errors.full_messages.join(", ")
  super(@record.errors.messages)
end

Instance Attribute Details

#recordObject (readonly)

:nodoc:



22
23
24
# File 'lib/ocean-dynamo/exceptions.rb', line 22

def record
  @record
end