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