Exception: Params::Registry::Error::Correction
- Inherits:
-
Empirical
- Object
- ArgumentError
- Params::Registry::Error
- Empirical
- Params::Registry::Error::Correction
- Defined in:
- lib/params/registry/error.rb
Overview
This is less an error and more a way to signal to the caller that the parameter set will serialize differently from how it was initialized.
Instance Method Summary collapse
-
#initialize(message, context: nil, value: nil, nearest: nil) ⇒ Correction
constructor
A new instance of Correction.
Constructor Details
#initialize(message, context: nil, value: nil, nearest: nil) ⇒ Correction
Returns a new instance of Correction.
37 38 39 40 |
# File 'lib/params/registry/error.rb', line 37 def initialize , context: nil, value: nil, nearest: nil @nearest = nearest super , context: context, value: value end |