Exception: Dry::Types::SchemaError

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

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ SchemaError

Returns a new instance of SchemaError.

Parameters:

  • key (String)
  • value (Object)


12
13
14
# File 'lib/dry/types/errors.rb', line 12

def initialize(key, value)
  super("#{value.inspect} (#{value.class}) has invalid type for :#{key}")
end