Exception: Attributor::DumpError

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

Instance Method Summary collapse

Constructor Details

#initialize(context:, name:, type:, original_exception:) ⇒ DumpError

Returns a new instance of DumpError.



31
32
33
34
35
# File 'lib/attributor/exceptions.rb', line 31

def initialize(context:, name:, type:, original_exception:)
  msg = "Error while dumping attribute #{name} of type #{type} for context #{Attributor.humanize_context(context)}."
  msg << " Reason: #{original_exception}"
  super msg
end