Exception: Paramore::HashExpected

Inherits:
StandardError
  • Object
show all
Defined in:
lib/paramore/errors.rb

Instance Method Summary collapse

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