Class: Dry::Types::UnknownKeysError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keys) ⇒ UnknownKeysError

Returns a new instance of UnknownKeysError.

Parameters:

  • keys (<String, Symbol>)


110
111
112
113
# File 'lib/dry/types/errors.rb', line 110

def initialize(keys)
  @keys = keys
  super("unexpected keys #{keys.inspect} in Hash input")
end

Instance Attribute Details

#keysArray<Symbol> (readonly)

Returns:



107
108
109
# File 'lib/dry/types/errors.rb', line 107

def keys
  @keys
end