Exception: TinyDyno::Errors::InvalidHashKey
- Inherits:
-
TinyDynoError
- Object
- StandardError
- TinyDynoError
- TinyDyno::Errors::InvalidHashKey
- Defined in:
- lib/tiny_dyno/errors/hash_key_errors.rb
Overview
This error is raised when trying to set a value in Mongoid that is not already set with dynamic attributes or the field is not defined.
Constant Summary
Constants inherited from TinyDynoError
Instance Method Summary collapse
-
#initialize(klass:, name:) ⇒ InvalidHashKey
constructor
Create the new error.
Methods inherited from TinyDynoError
Constructor Details
#initialize(klass:, name:) ⇒ InvalidHashKey
Create the new error.
18 19 20 21 22 |
# File 'lib/tiny_dyno/errors/hash_key_errors.rb', line 18 def initialize(klass:, name:) super( ("invalid_hash_key", { klass: klass.name, name: name }) ) end |