Exception: Dry::Data::SchemaError
- Inherits:
-
TypeError
- Object
- TypeError
- Dry::Data::SchemaError
- Defined in:
- lib/dry/data.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.
25 26 27 |
# File 'lib/dry/data.rb', line 25 def initialize(key, value) super("#{value.inspect} (#{value.class}) has invalid type for :#{key}") end |