Exception: Attributor::IncompatibleTypeError

Inherits:
LoadError show all
Defined in:
lib/attributor/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(type:, value_type:, context:) ⇒ IncompatibleTypeError

Returns a new instance of IncompatibleTypeError.



10
11
12
# File 'lib/attributor/exceptions.rb', line 10

def initialize(type:, value_type: , context: )
  super "Type #{type} cannot load values of type #{value_type} while loading #{Attributor.humanize_context(context)}."
end