15#ifndef IOX2_BB_ERROR_REPORTING_VIOLATION_HPP
16#define IOX2_BB_ERROR_REPORTING_VIOLATION_HPP
65 return "ASSERT_VIOLATION";
67 return "ENFORCE_VIOLATION";
69 return "unknown error";
77 return m_code ==
rhs.m_code && m_module ==
rhs.m_module;
81 return !(*
this ==
rhs);
Violation(ViolationErrorCode code)
Violation(ErrorCode code)
bool operator!=(const Violation &rhs) const
Violation(ErrorCode code, ModuleId module)
static const char * moduleName()
static Violation createAssertViolation()
static Violation createEnforceViolation()
bool operator==(const Violation &rhs) const
const char * name() const
constexpr AssertViolationKind ASSERT_VIOLATION
constexpr EnforceViolationKind ENFORCE_VIOLATION
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 ANY