Exception: TinyDyno::Errors::MissingHashKey
- Inherits:
-
TinyDynoError
- Object
- StandardError
- TinyDynoError
- TinyDyno::Errors::MissingHashKey
- 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:) ⇒ MissingHashKey
constructor
Create the new error.
Methods inherited from TinyDynoError
Constructor Details
#initialize(klass:) ⇒ MissingHashKey
Create the new error.
44 45 46 47 48 |
# File 'lib/tiny_dyno/errors/hash_key_errors.rb', line 44 def initialize(klass:) super( ("no hash key specified", { klass: klass.name }) ) end |