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(" Failed to build attributes for \#{relation.name}\n\n Attributes:\n \#{attrs.inspect}\n\n Associations:\n \#{assoc_attrs}\n\n Traits:\n \#{traits.inspect}\n\n Original exception: \#{original_exception.message}\n STR\n\n set_backtrace(original_exception.backtrace)\nend\n") |
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 |