Exception: Dynamoid::Errors::DocumentNotValid
- Inherits:
-
Error
- Object
- StandardError
- Error
- Dynamoid::Errors::DocumentNotValid
- Defined in:
- lib/dynamoid/errors.rb
Overview
DocumentNotValid is raised when the document fails validation.
Instance Method Summary (collapse)
-
- (DocumentNotValid) initialize(document)
constructor
A new instance of DocumentNotValid.
Constructor Details
- (DocumentNotValid) initialize(document)
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 |