Exception: Dry::Types::SchemaError
- Inherits:
-
TypeError
- Object
- TypeError
- Dry::Types::SchemaError
- Defined in:
- lib/dry/types/errors.rb
Instance Method Summary collapse
-
#initialize(key, value) ⇒ SchemaError
constructor
A new instance of SchemaError.
Constructor Details
#initialize(key, value) ⇒ SchemaError
Returns a new instance of SchemaError.
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 |