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.
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 |