class Attributor::DumpError

Public Class Methods

new(context:, name:, type:, original_exception:) click to toggle source
Calls superclass method
# 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