Exception: Attributor::IncompatibleTypeError
- Inherits:
-
LoadError
- Object
- StandardError
- AttributorException
- LoadError
- Attributor::IncompatibleTypeError
- Defined in:
- lib/attributor/exceptions.rb
Instance Method Summary collapse
-
#initialize(type:, value_type:, context:) ⇒ IncompatibleTypeError
constructor
A new instance of IncompatibleTypeError.
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 |