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

Provides shared helpers for reporting structured errors and exceptions. More...

#include <exception>
#include <string>
#include <utility>
#include "core/errors/ErrorCodes.h"
#include "core/errors/ErrorEventFactory.h"
#include "core/ports/diagnostics/IErrorReporter.h"
Include dependency graph for ErrorReporting.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

void core::errors::report (core::ports::diagnostics::IErrorReporter *reporter, const ErrorEvent &event)
 Report an already constructed error event when a reporter exists.
void core::errors::report (core::ports::diagnostics::IErrorReporter *reporter, ErrorSeverity severity, const char *code, const char *origin, std::string message, ErrorContext context={})
 Construct and report a structured error event.
void core::errors::reportException (core::ports::diagnostics::IErrorReporter *reporter, ErrorSeverity severity, const char *origin, std::exception_ptr exception)
 Report an exception through the reporter's default exception handling.
void core::errors::reportException (core::ports::diagnostics::IErrorReporter *reporter, ErrorSeverity severity, const char *code, const char *origin, std::exception_ptr exception, ErrorContext context={})
 Build and report a structured exception event.

Detailed Description

Provides shared helpers for reporting structured errors and exceptions.

Definition in file ErrorReporting.h.