23inline constexpr auto kCount =
"count";
24inline constexpr auto kError =
"error";
26inline constexpr auto kFile =
"file";
30inline constexpr auto kId =
"id";
31inline constexpr auto kLine =
"line";
33inline constexpr auto kName =
"name";
35inline constexpr auto kPath =
"path";
40inline constexpr auto kUrl =
"url";
66void trace(
const char*
layer,
const char* origin, std::string message,
134 const char* origin, std::string message,
152 std::move(message), std::move(context));
Declares structured error event payloads.
Provides shared helpers for reporting structured errors and exceptions.
Declares the structured diagnostics reporting port.
Port for reporting structured diagnostic error events.
Defines shared structured error codes.
constexpr const char * GenericError
Fallback code for generic structured errors.
ErrorSeverity
Severity level for structured error events.
std::vector< std::pair< std::string, std::string > > ErrorContext
Key/value context attached to an error event.
void report(core::ports::diagnostics::IErrorReporter *reporter, const ErrorEvent &event)
Report an already constructed error event when a reporter exists.
constexpr auto kFirstFile
constexpr auto kQueuedCount
constexpr auto kSelectionId
constexpr auto kException
constexpr auto kArtifactCount
constexpr auto kIncludeFormulas
constexpr auto kOperation
constexpr auto kViewModel
constexpr auto kWorkspace
constexpr auto kComposition
void traceViewModel(const char *origin, std::string message, core::errors::ErrorContext context={})
Emits a view model trace event.
void reportFlow(core::ports::diagnostics::IErrorReporter *reporter, core::errors::ErrorSeverity severity, const char *code, const char *origin, std::string message, core::errors::ErrorContext context={})
Reports a UI flow error event.
void traceWorkflow(const char *origin, std::string message, core::errors::ErrorContext context={})
Emits a workflow trace event.
bool isTraceEnabled()
Reports whether UI trace emission is enabled.
void traceComposition(const char *origin, std::string message, core::errors::ErrorContext context={})
Emits a composition trace event.
void traceWorkspace(const char *origin, std::string message, core::errors::ErrorContext context={})
Emits a workspace trace event.
void trace(const char *layer, const char *origin, std::string message, core::errors::ErrorContext context={})
Emits a UI trace event.
void traceAdapter(const char *origin, std::string message, core::errors::ErrorContext context={})
Emits an adapter trace event.
Declarations for the UI ErrorCodes component.