Exception: Paramore::NonField
- Inherits:
-
StandardError
- Object
- StandardError
- Paramore::NonField
- Defined in:
- lib/paramore/errors.rb
Instance Method Summary collapse
-
#initialize(param_name, type) ⇒ NonField
constructor
A new instance of NonField.
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 |