Exception: OceanDynamo::StaleObjectError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ StaleObjectError

:nodoc:



38
39
40
41
42
# File 'lib/ocean-dynamo/exceptions.rb', line 38

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

Instance Attribute Details

#recordObject (readonly)

:nodoc:



37
38
39
# File 'lib/ocean-dynamo/exceptions.rb', line 37

def record
  @record
end