16#ifndef IOX2_BB_ERROR_HANDLING_ERROR_HANDLING_HPP
17#define IOX2_BB_ERROR_HANDLING_ERROR_HANDLING_HPP
39#define IOX2_BB_ERRORS(error) \
40 error(DO_NOT_USE_AS_ERROR_THIS_IS_AN_INTERNAL_MARKER)
57 static_cast<std::underlying_type<HoofsError>::type
>(HoofsError::DO_NOT_USE_AS_ERROR_THIS_IS_AN_INTERNAL_MARKER);
58 auto index =
static_cast<std::underlying_type<HoofsError>::type
>(
error);
60 return "Unknown Error Code!";
86 return "iceoryx2-bb-cxx";
iox2::legacy::er::ErrorCode code() const
HoofsErrorType(HoofsError code)
static constexpr iox2::legacy::er::ModuleId MODULE_ID
const char * name() const
static constexpr iox2::legacy::er::ModuleId module()
static const char * moduleName()
iox2::legacy::er::ErrorCode m_code
#define IOX2_BB_ERRORS(error)
HoofsErrorType toError(HoofsError code)
ModuleId toModule(HoofsError)
constexpr bool always_false_v
Helper value to bind a static_assert to a type.
static const char * asStringLiteral(const HoofsError error)
helper struct to create an expected which is signalling an error more easily
static constexpr type IOX2_BB
#define IOX2_CREATE_ERROR_STRING(name)