|
FOSSredder 0.5.0
|
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"

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. | |
Provides shared helpers for reporting structured errors and exceptions.
Definition in file ErrorReporting.h.