14#ifndef IOX2_BB_REPORTING_ERROR_REPORTING_CUSTOM_ERROR_HANDLER_INTERFACE_HPP
15#define IOX2_BB_REPORTING_ERROR_REPORTING_CUSTOM_ERROR_HANDLER_INTERFACE_HPP
Defines the dynamic error handling interface (i.e. changeable at runtime).
virtual void onReportError(ErrorDescriptor desc)=0
Defines the reaction on error.
virtual void onPanic()=0
Defines the reaction on panic.
virtual ~ErrorHandlerInterface()=default
virtual void onReportViolation(ErrorDescriptor desc)=0
Defines the reaction on violation (a bug in the code)
constexpr bool always_false_v
Helper value to bind a static_assert to a type.
Contains all required information about the error. Can be extended as needed without breaking the int...
constexpr ErrorDescriptor(const bb::detail::SourceLocation &location, const ErrorCode &code, const ModuleId &module=ModuleId())
bb::detail::SourceLocation location