Exception: Dry::Types::SchemaError

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

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ SchemaError



25
26
27
# File 'lib/dry/types.rb', line 25

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