Exception: Dynamoid::Errors::DocumentNotValid

Inherits:
Error
  • Object
show all
Defined in:
lib/dynamoid/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document) ⇒ DocumentNotValid

Returns a new instance of DocumentNotValid.



58
59
60
61
# File 'lib/dynamoid/errors.rb', line 58

def initialize(document)
  super("Validation failed: #{document.errors.full_messages.join(", ")}")
  @document = document
end

Instance Attribute Details

#documentObject (readonly)

Returns the value of attribute document.



56
57
58
# File 'lib/dynamoid/errors.rb', line 56

def document
  @document
end