Exception: Paramore::HashExpected
- Inherits:
-
StandardError
- Object
- StandardError
- Paramore::HashExpected
- Defined in:
- lib/paramore/errors.rb
Instance Method Summary collapse
-
#initialize(param_name, param) ⇒ HashExpected
constructor
A new instance of HashExpected.
Constructor Details
#initialize(param_name, param) ⇒ HashExpected
Returns a new instance of HashExpected.
14 15 16 |
# File 'lib/paramore/errors.rb', line 14 def initialize(param_name, param) super("Expected #{Paramore::ErrorFieldName(param_name)} to be a hash, received #{param.class} instead!") end |