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

Inherits:
Empirical show all
Defined in:
lib/params/registry/error.rb

Overview

A correctable error

Instance Method Summary collapse

Constructor Details

#initialize(message, context: nil, value: nil, nearest: nil) ⇒ Correction

Returns a new instance of Correction.



29
30
31
32
# File 'lib/params/registry/error.rb', line 29

def initialize message, context: nil, value: nil, nearest: nil
  @nearest = nearest
  super message, context: context, value: value
end