38 files.front().toStdString());
51 const char* origin, std::string message,
56 origin, std::move(message), std::move(context));
Declarations for the UI Trace component.
Port for reporting structured diagnostic error events.
ErrorSeverity
Severity level for structured error events.
std::vector< std::pair< std::string, std::string > > ErrorContext
Key/value context attached to an error event.
constexpr const char * FlowMainWindowAction
constexpr auto kFirstFile
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 reportMainWindowFlow(core::ports::diagnostics::IErrorReporter *reporter, const char *origin, std::string message, core::errors::ErrorSeverity severity=core::errors::ErrorSeverity::Info, core::errors::ErrorContext context={})
Emits a structured main-window flow diagnostic.
core::errors::ErrorContext makePathContext(const QString &path)
Builds trace context for a single filesystem path.
core::errors::ErrorContext makeFileListContext(const QStringList &files)
Builds trace context for a list of selected or dropped files.