Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ManagedDiagnostic Struct Reference

One owned error and its bounded causal trace, independent of widget lifetime. More...

#include <managed_diagnostics.hpp>

Public Attributes

ManagedError error
std::vector< ManagedDiagnosticContext > contexts = std::vector<ManagedDiagnosticContext>(0)
 Owning breadcrumbs, oldest supplied context first; empty construction can propagate allocation failure.
std::source_location origin {}
 Report call site; not a physical runtime stack.
bool contextsTruncated {}
 Context count or label byte budget truncated the trace.
bool contextUnavailable {}
 Context allocation failed; error and origin survive.
bool storageOverflow {}
 Observer-only fallback: history was already full.
bool notificationSuppressed {}
 A nested report was stored without recursive notification.
bool observerFailed {}
 The observer threw while receiving this error.

Detailed Description

One owned error and its bounded causal trace, independent of widget lifetime.

Member Data Documentation

◆ error

ManagedError portals::ManagedDiagnostic::error

Original typed error and independent final failures.


The documentation for this struct was generated from the following file: