Sha256: ce571526a707371b789aecadcd6f8b949b2741e18ae7d16251764220ec541fcc
Contents?: true
Size: 695 Bytes
Versions: 5
Compression:
Stored size: 695 Bytes
Contents
# encoding: utf-8 module Dynamoid # All the error specific to Dynamoid. module Errors # Generic error class. class Error < StandardError; end # InvalidField is raised when an attribute is specified for an index, but the attribute does not exist. class InvalidField < Error; end # MissingRangeKey is raised when a table that requires a range key is quieried without one. class MissingRangeKey < Error; end # DocumentNotValid is raised when the document fails validation. class DocumentNotValid < Error def initialize(document) super("Validation failed: #{document.errors.full_messages.join(", ")}") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems