Exception: Dynamoid::Errors::InvalidIndex
- Defined in:
- lib/dynamoid/errors.rb
Overview
InvalidIndex is raised when an invalid index is specified, for example if specified key attribute(s) or projected attributes do not exist.
Instance Method Summary collapse
-
#initialize(item) ⇒ InvalidIndex
constructor
A new instance of InvalidIndex.
Constructor Details
#initialize(item) ⇒ InvalidIndex
Returns a new instance of InvalidIndex.
16 17 18 19 20 21 22 |
# File 'lib/dynamoid/errors.rb', line 16 def initialize(item) if item.is_a? String super(item) else super("Validation failed: #{item.errors..join(', ')}") end end |