Sha256: cff0d93624ade9ccb4b5cac386bba6bab48462db5d389e84b404ff3111011b5e
Contents?: true
Size: 859 Bytes
Versions: 11
Compression:
Stored size: 859 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 # raised when the conditional check failed during update operation class ConditionalCheckFailedException < 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 class InvalidQuery < Error; end end end
Version data entries
11 entries across 11 versions & 3 rubygems