Exception: Paramore::ArrayExpected

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

Instance Method Summary collapse

Constructor Details

#initialize(param_name, param) ⇒ ArrayExpected

Returns a new instance of ArrayExpected.



20
21
22
# File 'lib/paramore/errors.rb', line 20

def initialize(param_name, param)
  super("Expected #{Paramore::ErrorFieldName(param_name)} to be an array, received #{param.class} instead!")
end