Exception: TinyDyno::Errors::OnlyOneHashKeyPermitted
- Inherits:
-
TinyDynoError
- Object
- StandardError
- TinyDynoError
- TinyDyno::Errors::OnlyOneHashKeyPermitted
- 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:) ⇒ OnlyOneHashKeyPermitted
constructor
Create the new error.
Methods inherited from TinyDynoError
Constructor Details
#initialize(klass:, name:) ⇒ OnlyOneHashKeyPermitted
Create the new error.
96 97 98 99 100 |
# File 'lib/tiny_dyno/errors/hash_key_errors.rb', line 96 def initialize(klass:, name:) super( ("you can only define one hash_key", { klass: klass.name, name: name }) ) end |