Exception: Paramore::NonField

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

Instance Method Summary collapse

Constructor Details

#initialize(param_name, type) ⇒ NonField

Returns a new instance of NonField.



8
9
10
# File 'lib/paramore/errors.rb', line 8

def initialize(param_name, type)
  super("#{Paramore::ErrorFieldName(param_name)} defined as a `#{type.class}`, expected a call of `Paramore.field()`! Perhaps you declared a plain hash instead of Paramore.field({})?")
end