Class: Dry::Types::MissingKeyError

Inherits:
SchemaKeyError
  • Object
show all
Defined in:
lib/dry/types/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ MissingKeyError

Returns a new instance of MissingKeyError.

Parameters:

  • key (String)


22
23
24
# File 'lib/dry/types/errors.rb', line 22

def initialize(key)
  super(":#{key} is missing in Hash input")
end