|
iceoryx2
C++ Bindings
|
Namespaces | |
| namespace | detail |
Classes | |
| struct | ConfigurationTag |
| struct | ConfigurationParameters |
| struct | ConfigurationParameters< ConfigurationTag > |
| class | DefaultErrorHandler |
| Defines the default reaction of dynamic error handling. The default reaction is to do nothing apart from logging and termination on panic. As this is common for all error handling of the given custom implementation, this happens in the reporting API before the (polymorphic) custom behavior is invoked. More... | |
| struct | ErrorDescriptor |
| Contains all required information about the error. Can be extended as needed without breaking the interface. More... | |
| class | ErrorHandlerInterface |
| Defines the dynamic error handling interface (i.e. changeable at runtime). More... | |
| struct | RuntimeErrorKind |
| struct | FatalKind |
| struct | AssertViolationKind |
| struct | EnforceViolationKind |
| struct | IsFatal |
| struct | IsFatal< FatalKind > |
| struct | IsFatal< AssertViolationKind > |
| struct | IsFatal< EnforceViolationKind > |
| struct | ErrorCode |
| struct | ModuleId |
| class | Violation |
Enumerations | |
| enum class | ViolationErrorCode : iox2::legacy::er::ErrorCode::type { ASSERT_VIOLATION , ENFORCE_VIOLATION } |
Functions | |
| HoofsErrorType | toError (HoofsError code) |
| void | panic () |
| void | panic (const bb::detail::SourceLocation &location) |
| template<class Message> | |
| void | panic (const bb::detail::SourceLocation &location, Message &&msg) |
| template<class Kind, class Error> | |
| void | report (const bb::detail::SourceLocation &location, Kind, const Error &error, const char *stringifiedCondition) |
| template<class Error> | |
| void | report (const bb::detail::SourceLocation &location, iox2::legacy::er::FatalKind kind, const Error &error, const char *stringifiedCondition) |
| template<class Error> | |
| void | report (const bb::detail::SourceLocation &location, iox2::legacy::er::AssertViolationKind kind, const Error &error, const char *stringifiedCondition) |
| template<class Error> | |
| void | report (const bb::detail::SourceLocation &location, iox2::legacy::er::EnforceViolationKind kind, const Error &error, const char *stringifiedCondition) |
| template<class Error, class Message> | |
| void | report (const bb::detail::SourceLocation &location, iox2::legacy::er::AssertViolationKind kind, const Error &error, const char *stringifiedCondition, Message &&msg) |
| template<class Error, class Message> | |
| void | report (const bb::detail::SourceLocation &location, iox2::legacy::er::EnforceViolationKind kind, const Error &error, const char *stringifiedCondition, Message &&msg) |
| template<typename Message> | |
| void | forwardPanic (const bb::detail::SourceLocation &location, Message &&msg) |
| Forwards that a panic state was encountered and does not return. | |
| template<typename Error, typename Kind> | |
| void | forwardFatalError (Error &&error, Kind &&kind, const bb::detail::SourceLocation &location, const char *stringifiedCondition) |
| Forwards a fatal error and does not return. | |
| template<typename Error, typename Kind> | |
| void | forwardNonFatalError (Error &&error, Kind &&kind, const bb::detail::SourceLocation &location, const char *stringifiedCondition) |
| Forwards a non-fatal error. | |
| template<typename Error, typename Kind, typename Message> | |
| void | forwardFatalError (Error &&error, Kind &&kind, const bb::detail::SourceLocation &location, const char *stringifiedCondition, Message &&msg) |
| Forwards a fatal error and a message and does not return. | |
| template<class Kind> | |
| bool constexpr | isFatal (Kind) |
| template<> | |
| bool constexpr | isFatal< FatalKind > (FatalKind) |
| template<> | |
| bool constexpr | isFatal< AssertViolationKind > (AssertViolationKind) |
| template<> | |
| bool constexpr | isFatal< EnforceViolationKind > (EnforceViolationKind) |
| template<typename ErrorLike> | |
| auto | toError (ErrorLike &&value) |
| template<class Error> | |
| ErrorCode | toCode (const Error &error) |
| template<> | |
| ErrorCode | toCode< ErrorCode > (const ErrorCode &error) |
| template<class Error> | |
| ModuleId | toModule (const Error &error) |
| template<class Error> | |
| const char * | toModuleName (const Error &error) |
| template<class Error> | |
| const char * | toErrorName (const Error &error) |
Variables | |
| ModuleId | toModule (HoofsError) |
| constexpr RuntimeErrorKind | RUNTIME_ERROR {} |
| constexpr FatalKind | FATAL |
| constexpr AssertViolationKind | ASSERT_VIOLATION |
| constexpr EnforceViolationKind | ENFORCE_VIOLATION |
| static constexpr const char * | UNKNOWN_ERROR_NAME = "unknown error" |
| static constexpr const char * | UNKNOWN_MODULE_NAME = "unknown module" |
Definition at line 39 of file configuration.hpp.
| using iox2::legacy::er::DefaultErrorHandlerGuard = iox2::legacy::StaticLifetimeGuard<DefaultErrorHandler> |
Definition at line 29 of file error_handler.hpp.
| using iox2::legacy::er::ErrorHandler = iox2::legacy::PolymorphicHandler<ErrorHandlerInterface, DefaultErrorHandler> |
Definition at line 27 of file error_handler.hpp.
|
strong |
| Enumerator | |
|---|---|
| ASSERT_VIOLATION | |
| ENFORCE_VIOLATION | |
Definition at line 34 of file violation.hpp.
|
inline |
Forwards a fatal error and does not return.
| error | the error |
| kind | the kind of error (category) |
| location | the location of the error |
| stringifiedCondition | the condition as string if a macro with a condition was used; an empty string otherwise |
Definition at line 59 of file error_forwarding.hpp.
|
inline |
Forwards a fatal error and a message and does not return.
| error | the error |
| kind | the kind of error (category) |
| location | the location of the error |
| stringifiedCondition | the condition as string if a macro with a condition was used; an empty string otherwise |
| msg | the message to be forwarded |
Definition at line 95 of file error_forwarding.hpp.
|
inline |
Forwards a non-fatal error.
| error | the error |
| kind | the kind of error (category) |
| location | the location of the error |
| stringifiedCondition | the condition as string if a macro with a condition was used; an empty string otherwise |
Definition at line 77 of file error_forwarding.hpp.
References report().
|
inline |
Forwards that a panic state was encountered and does not return.
| location | the location of the panic invocation |
| msg | the message to be forwarded |
Definition at line 37 of file error_forwarding.hpp.
References panic().
Referenced by iox2::legacy::er::detail::unreachable_wrapped().
|
constexpr |
Definition at line 64 of file error_kind.hpp.
|
constexpr |
Definition at line 74 of file error_kind.hpp.
|
constexpr |
Definition at line 79 of file error_kind.hpp.
|
constexpr |
Definition at line 69 of file error_kind.hpp.
|
inline |
Definition at line 43 of file error_reporting_impl.hpp.
References iox2::legacy::PolymorphicHandler< ErrorHandlerInterface, DefaultErrorHandler >::get().
Referenced by forwardFatalError(), forwardFatalError(), forwardPanic(), panic(), and panic().
|
inline |
Definition at line 50 of file error_reporting_impl.hpp.
References IOX2_ERROR_INTERNAL_LOG_PANIC, and panic().
|
inline |
Definition at line 60 of file error_reporting_impl.hpp.
References IOX2_ERROR_INTERNAL_LOG_PANIC, and panic().
|
inline |
Definition at line 155 of file error_reporting_impl.hpp.
References iox2::legacy::er::detail::report().
|
inline |
Definition at line 172 of file error_reporting_impl.hpp.
References iox2::legacy::er::detail::report().
|
inline |
Definition at line 163 of file error_reporting_impl.hpp.
References iox2::legacy::er::detail::report().
|
inline |
Definition at line 182 of file error_reporting_impl.hpp.
References iox2::legacy::er::detail::report().
|
inline |
Definition at line 99 of file error_reporting_impl.hpp.
References iox2::legacy::PolymorphicHandler< ErrorHandlerInterface, DefaultErrorHandler >::get(), IOX2_ERROR_INTERNAL_LOG_FATAL, iox2::legacy::er::detail::logStringifiedCondition(), iox2::legacy::er::FatalKind::name, toCode(), toErrorName(), and toModuleName().
|
inline |
Definition at line 77 of file error_reporting_impl.hpp.
References iox2::legacy::PolymorphicHandler< ErrorHandlerInterface, DefaultErrorHandler >::get(), IOX2_ERROR_INTERNAL_LOG, iox2::legacy::er::detail::logStringifiedCondition(), toCode(), toErrorName(), and toModuleName().
Referenced by forwardFatalError(), forwardFatalError(), and forwardNonFatalError().
|
inline |
Definition at line 83 of file types.hpp.
Referenced by iox2::legacy::er::detail::report(), iox2::legacy::er::detail::report(), report(), and report().
|
inline |
| auto iox2::legacy::er::toError | ( | ErrorLike && | value | ) |
|
inline |
Definition at line 97 of file hoofs_error_reporting.hpp.
Referenced by iox2::bb::testing::has_error(), toErrorName(), and toModuleName().
|
inline |
|
inline |
|
inline |
|
constexpr |
Definition at line 87 of file error_kind.hpp.
|
constexpr |
Definition at line 90 of file error_kind.hpp.
|
constexpr |
Definition at line 84 of file error_kind.hpp.
|
constexpr |
Definition at line 33 of file error_kind.hpp.
|
inline |
Definition at line 101 of file hoofs_error_reporting.hpp.
|
staticconstexpr |