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, result) ⇒ SchemaError
constructor
A new instance of SchemaError.
Constructor Details
#initialize(key, value, result) ⇒ SchemaError
Returns a new instance of SchemaError.
13 14 15 |
# File 'lib/dry/types/errors.rb', line 13 def initialize(key, value, result) super("#{value.inspect} (#{value.class}) has invalid type for :#{key} violates constraints (#{result} failed)") end |