iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::legacy::er::ErrorDescriptor Struct Reference

Contains all required information about the error. Can be extended as needed without breaking the interface. More...

#include <error_handler_interface.hpp>

Public Member Functions

constexpr ErrorDescriptor (const bb::detail::SourceLocation &location, const ErrorCode &code, const ModuleId &module=ModuleId())

Public Attributes

bb::detail::SourceLocation location
ErrorCode code
ModuleId module

Detailed Description

Contains all required information about the error. Can be extended as needed without breaking the interface.

Note
We either need this, something like std::any or a class hierarchy for runtime polymorphism. The actual error type must be erased in some way.

Definition at line 28 of file error_handler_interface.hpp.

Constructor & Destructor Documentation

◆ ErrorDescriptor()

iox2::legacy::er::ErrorDescriptor::ErrorDescriptor ( const bb::detail::SourceLocation & location,
const ErrorCode & code,
const ModuleId & module = ModuleId() )
inlineconstexpr

Definition at line 29 of file error_handler_interface.hpp.

References code, location, and module.

Member Data Documentation

◆ code

ErrorCode iox2::legacy::er::ErrorDescriptor::code

Definition at line 38 of file error_handler_interface.hpp.

Referenced by ErrorDescriptor().

◆ location

bb::detail::SourceLocation iox2::legacy::er::ErrorDescriptor::location

Definition at line 37 of file error_handler_interface.hpp.

Referenced by ErrorDescriptor().

◆ module

ModuleId iox2::legacy::er::ErrorDescriptor::module

Definition at line 39 of file error_handler_interface.hpp.

Referenced by ErrorDescriptor().


The documentation for this struct was generated from the following file: