iceoryx2
C++ Language 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
 

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()

constexpr 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.

Member Data Documentation

◆ code

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

Definition at line 38 of file error_handler_interface.hpp.

◆ location

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

Definition at line 37 of file error_handler_interface.hpp.


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