FOSSredder 0.5.0
Loading...
Searching...
No Matches
ErrorEvent.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <string>
9#include <utility>
10#include <vector>
11
12namespace core::errors {
13
23
27using ErrorContext = std::vector<std::pair<std::string, std::string>>;
28
32struct ErrorEvent {
34 std::string origin;
35 std::string message;
36 std::string exceptionType;
37 std::string code = "GENERIC_ERROR";
39};
40
41} // namespace core::errors
ErrorSeverity
Severity level for structured error events.
Definition ErrorEvent.h:17
std::vector< std::pair< std::string, std::string > > ErrorContext
Key/value context attached to an error event.
Definition ErrorEvent.h:27
Structured error payload sent through diagnostics ports.
Definition ErrorEvent.h:32
std::string exceptionType
Definition ErrorEvent.h:36
ErrorSeverity severity
Definition ErrorEvent.h:33