14#ifndef IOX2_BB_REPORTING_ERROR_REPORTING_TYPES_HPP
15#define IOX2_BB_REPORTING_ERROR_REPORTING_TYPES_HPP
44 return !(*
this ==
rhs);
71 return !(*
this ==
rhs);
77template <
typename ErrorLike>
79 return std::forward<ErrorLike>(value);
94 return error.module();
102template <
class Error>
113#define IOX2_CREATE_ERROR_ENUM(name) name,
114#define IOX2_CREATE_ERROR_STRING(name) #name,
const char * name() const
static const char * moduleName()
HoofsErrorType toError(HoofsError code)
static constexpr const char * UNKNOWN_MODULE_NAME
ErrorCode toCode(const Error &error)
const char * toErrorName(const Error &error)
ErrorCode toCode< ErrorCode >(const ErrorCode &error)
ModuleId toModule(HoofsError)
static constexpr const char * UNKNOWN_ERROR_NAME
const char * toModuleName(const Error &error)
constexpr bool always_false_v
Helper value to bind a static_assert to a type.
helper struct to create an expected which is signalling an error more easily
bool operator==(const ErrorCode &rhs) const
bool operator!=(const ErrorCode &rhs) const
constexpr ErrorCode(uint32_t value)
static constexpr type IOX2
constexpr ModuleId(uint32_t value=ANY)
static constexpr type IOX2_BB
bool operator!=(const ModuleId &rhs) const
static constexpr type ANY
static constexpr type USER_MODULE_BASE
bool operator==(const ModuleId &rhs) const