39 std::exception_ptr exception) {
Declares structured error event payloads.
Declares helpers for turning exceptions into structured error events.
Port for reporting structured diagnostic error events.
virtual ~IErrorReporter()=default
Destroy the error reporter port.
virtual void reportException(core::errors::ErrorSeverity severity, const char *origin, std::exception_ptr exception)
Report an exception as a structured error event.
virtual void report(const core::errors::ErrorEvent &event)=0
Report a structured error event.
ErrorSeverity
Severity level for structured error events.
ErrorEvent makeExceptionEvent(ErrorSeverity severity, const char *code, const char *origin, std::exception_ptr exception, ErrorContext context={})
Build a structured event from an exception pointer.
Structured error payload sent through diagnostics ports.