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.



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

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