Exception: Dynamoid::Errors::DocumentNotValid

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

Overview

DocumentNotValid is raised when the document fails validation.

Instance Method Summary (collapse)

Constructor Details

- (DocumentNotValid) initialize(document)

A new instance of DocumentNotValid



18
19
20
# File 'lib/dynamoid/errors.rb', line 18

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