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 params (:exception, :request_path, :status_code, :component_tag, :retry_url, :attempts_remaining) and the identity a recovery fragment inherits from the component it stands in for.
Depends on Router internals: headers, status, request,
redirect, htmx_request?.