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.



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

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