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



21
22
23
# File 'lib/dynamoid/errors.rb', line 21

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