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.



70
71
72
73
# File 'lib/dynamoid/errors.rb', line 70

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.



68
69
70
# File 'lib/dynamoid/errors.rb', line 68

def document
  @document
end