Exception: ROM::Factory::TupleEvaluator::TupleEvaluatorError Private
- Inherits:
-
StandardError
- Object
- StandardError
- ROM::Factory::TupleEvaluator::TupleEvaluatorError
- Defined in:
- lib/rom/factory/tuple_evaluator.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #original_exception ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(relation, original_exception, attrs, traits, assoc_attrs) ⇒ TupleEvaluatorError
constructor
private
A new instance of TupleEvaluatorError.
Constructor Details
#initialize(relation, original_exception, attrs, traits, assoc_attrs) ⇒ TupleEvaluatorError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TupleEvaluatorError.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rom/factory/tuple_evaluator.rb', line 12 def initialize(relation, original_exception, attrs, traits, assoc_attrs) super(<<~STR) Failed to build attributes for #{relation.name} Attributes: #{attrs.inspect} Associations: #{assoc_attrs} Traits: #{traits.inspect} Original exception: #{original_exception.} STR set_backtrace(original_exception.backtrace) end |
Instance Attribute Details
#original_exception ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/rom/factory/tuple_evaluator.rb', line 10 def original_exception @original_exception end |