FOSSredder 0.5.0
Loading...
Searching...
No Matches
ErrorEventFactory.h File Reference

Declares helpers for turning exceptions into structured error events. More...

#include "core/errors/ErrorCodes.h"
#include "core/errors/ErrorEvent.h"
#include <exception>
#include <string>
#include <typeinfo>
#include <utility>
Include dependency graph for ErrorEventFactory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  core
namespace  core::errors

Functions

const char * core::errors::severityToString (ErrorSeverity severity) noexcept
 Convert an error severity to a stable lowercase label.
ErrorEvent core::errors::makeExceptionEvent (ErrorSeverity severity, const char *code, const char *origin, std::exception_ptr exception, ErrorContext context={})
 Build a structured event from an exception pointer.

Detailed Description

Declares helpers for turning exceptions into structured error events.

Definition in file ErrorEventFactory.h.