Multi-line human-readable formatting of a PilatesError. Used by the default
ErrorBoundary fallback and (Phase 2) the in-frame ErrorOverview panel.
Format:
Pilates:
hint: (dev only; omitted when hint is absent)
caused by: (recursive — indented two spaces per nesting)
Plain Error / unknown values fall through to a single-line representation.
Cycles (e.g. err.cause === err) are detected via a per-call WeakSet and
rendered as Pilates: [Circular] rather than recursing infinitely. Without
this, the default <ErrorBoundary> fallback would itself crash if a user
constructed a self-referential cause chain.
Multi-line human-readable formatting of a PilatesError. Used by the default ErrorBoundary fallback and (Phase 2) the in-frame ErrorOverview panel.
Format: Pilates:
hint: (dev only; omitted when hint is absent)
caused by: (recursive — indented two spaces per nesting)
Plain Error / unknown values fall through to a single-line representation.
Cycles (e.g.
err.cause === err) are detected via a per-call WeakSet and rendered asPilates: [Circular]rather than recursing infinitely. Without this, the default<ErrorBoundary>fallback would itself crash if a user constructed a self-referential cause chain.