Exception: Params::Registry::Error::Correction

Inherits:
Empirical show all
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

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 message, context: nil, value: nil, nearest: nil
  @nearest = nearest
  super message, context: context, value: value
end