Exception: Dynamoid::Errors::DocumentNotValid
- Defined in:
- lib/dynamoid/errors.rb
Overview
DocumentNotValid is raised when the document fails validation.
Instance Method Summary collapse
-
#initialize(document) ⇒ DocumentNotValid
constructor
A new instance of DocumentNotValid.
Constructor Details
#initialize(document) ⇒ DocumentNotValid
Returns a new instance of DocumentNotValid.
21 22 23 |
# File 'lib/dynamoid/errors.rb', line 21 def initialize(document) super("Validation failed: #{document.errors..join(", ")}") end |