Module: Axn::Internal::CarriedPresentation
- Defined in:
- lib/axn/internal/carried_presentation.rb
Overview
Per-call-tree record of each failure's resolved presentation string, so an ancestor call!
that re-raises the SAME exception object can prefix its own base onto the child's already-
resolved message (header aggregation). Mirrors ExceptionClassification: scoped via
IsolatedExecutionState, identity-keyed (compare_by_identity), and cleared when the nesting
stack empties (see NestingTracking) so a later independent run starts fresh.
Class Method Summary collapse
Class Method Details
.get(exception) ⇒ Object
12 |
# File 'lib/axn/internal/carried_presentation.rb', line 12 def get(exception) = _store[exception] |
.reset! ⇒ Object
15 16 17 |
# File 'lib/axn/internal/carried_presentation.rb', line 15 def reset! ActiveSupport::IsolatedExecutionState[:_axn_carried_presentation] = nil end |
.set(exception, string) ⇒ Object
13 |
# File 'lib/axn/internal/carried_presentation.rb', line 13 def set(exception, string) = (_store[exception] = string) |