Exception: TinyDyno::Errors::InvalidSelector
- Inherits:
-
TinyDynoError
- Object
- StandardError
- TinyDynoError
- TinyDyno::Errors::InvalidSelector
- Defined in:
- lib/tiny_dyno/errors/hash_key_errors.rb
Overview
This error is raised, when a query is performed with fields specified that are not HashKeys, which would result in a table scan
Constant Summary
Constants inherited from TinyDynoError
Instance Method Summary collapse
-
#initialize(klass:, name:) ⇒ InvalidSelector
constructor
Create the new error.
Methods inherited from TinyDynoError
Constructor Details
#initialize(klass:, name:) ⇒ InvalidSelector
Create the new error.
123 124 125 126 127 |
# File 'lib/tiny_dyno/errors/hash_key_errors.rb', line 123 def initialize(klass:, name:) super( ("look up only by key fields", { klass: klass.name, name: name }) ) end |