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

Original error plus independent runner/restoration and cleanup failures. More...

#include <managed_diagnostics.hpp>

Public Attributes

ManagedPhase phase {ManagedPhase::RUN}
 First failing managed operation.
NodeId node {}
std::variant< TreeError, StyleError, ApplicationError > cause
 Unformatted original error; StyleError messages follow their static-storage contract.
std::optional< ApplicationError > application
 Runner error, including terminal restoration.
std::optional< TreeError > cleanup
 Independent failure while retiring the subtree.
std::optional< TextError > text {}
 Original text-validation category and byte offset, when present.
std::optional< TextResourceError > resource {}
 Original resource lookup category, when present.
std::optional< PssError > pss {}
 Exact allocation-free PSS failure, including its owned subject and source position.
std::optional< PssFileError > file {}
std::shared_ptr< const std::string > styleSource {}
 Immutable owning source identity, or empty when unavailable; never borrowed through an error message. Facades may preallocate this identity before application. Low-level non-OOM failures may attach it best-effort. Invalid/oversized identities use an empty label or a bounded complete UTF-8 prefix; original PSS errors survive. NO_MEMORY handling performs no label allocation. Copies share the identity without retaining a scene.
std::optional< ShortcutError > shortcut {}
 Exact shortcut syntax/value cause and owned offset, when present.
std::optional< std::source_location > registrationOrigin {}
 Static registration identity for a shortcut action failure; never a borrowed source view.
const char * operation {}
 Library static-storage operation label, independent of allocated diagnostic contexts.
std::optional< std::source_location > operationOrigin {}
 Original entered operation site, before facade propagation.
const char * execution {}
 Library static-storage facade boundary label; does not replace the original phase.
bool setupStopped {}
 A scoped short failure stopped subsequent setup/run after the current callback returned.
detail::ManagedErrorReceipt reportReceipt {}
std::shared_ptr< const SceneResourceError > sceneResource {}
 Shared immutable runtime scene source, category and position; copies allocate no memory. Context attachment is best-effort: allocation failure leaves this empty and preserves the original typed cause.
std::optional< PasswordFailure > password {}
 Allocation-free protected editor cause, including independent security and cleanup failures.
std::optional< AsyncError > async {}
 Exact coroutine/admission failure, independent of its tree bridge.
std::optional< BackgroundError > background {}
 Exact executor admission cause when an async request fails.
std::optional< SearchError > search {}
 Exact bounded choice/search provider failure.
std::optional< NumericError > numeric {}
 Exact finite-value, range, step or numeric-source conflict cause.
std::optional< SourceError > source {}
 Exact window-source admission/read/delivery failure.
std::shared_ptr< const DocumentOperationFailure > document {}
 Optional owning document source/decoder detail; allocation failures retain the scalar cause.
std::optional< FileLogFailure > logFile {}
 Original per-operation file cause and native error code.

Detailed Description

Original error plus independent runner/restoration and cleanup failures.

Member Data Documentation

◆ file

std::optional<PssFileError> portals::ManagedError::file {}

Original file operation and error code, independent of parser failures.

◆ node

NodeId portals::ManagedError::node {}

Target identity, empty when no node was involved.

◆ reportReceipt

detail::ManagedErrorReceipt portals::ManagedError::reportReceipt {}

Opaque copied reporting provenance; default construction is empty.


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