Module: Weft::Router::Errors
- Included in:
- Weft::Router
- Defined in:
- lib/weft/router/errors.rb
Overview
Error-and-recovery slice of the Router. Walks recovers chains for component-context failures (A1–A5, C1–C3) and page-context failures (B1, B2, C1 page-context, C4), implements the htmx_errors = :redirect knob (D1, D2 no-op, D3 no-op), and houses the safety-net fallbacks for unmatched errors and recovery handlers that themselves raise.
Also owns the schema-gated auto-injection of recovery attributes (:exception, :request_path, :status_code, :component_id, :retry_url).
Depends on Router internals: resolver, headers, status,
request, redirect, htmx_request?.