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.
17 18 19 20 21 22 23 |
# File 'lib/dynamoid/errors.rb', line 17 def initialize(item) if item.is_a? String super else super("Validation failed: #{item.errors..join(', ')}") end end |