iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
iox2::legacy::er::DefaultErrorHandler Class Reference

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

#include <default_error_handler.hpp>

Inheritance diagram for iox2::legacy::er::DefaultErrorHandler:
iox2::legacy::er::ErrorHandlerInterface

Public Member Functions

 DefaultErrorHandler ()=default
 
 ~DefaultErrorHandler () override=default
 
 DefaultErrorHandler (const DefaultErrorHandler &)=delete
 
 DefaultErrorHandler (DefaultErrorHandler &&)=delete
 
DefaultErrorHandleroperator= (const DefaultErrorHandler &)=delete
 
DefaultErrorHandleroperator= (DefaultErrorHandler &&)=delete
 
void onPanic () override
 Defines the reaction on panic.
 
void onReportError (ErrorDescriptor) override
 Defines the reaction on error.
 
void onReportViolation (ErrorDescriptor) override
 Defines the reaction on violation.
 
- Public Member Functions inherited from iox2::legacy::er::ErrorHandlerInterface
virtual ~ErrorHandlerInterface ()=default
 

Detailed Description

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.

Definition at line 29 of file default_error_handler.hpp.

Constructor & Destructor Documentation

◆ DefaultErrorHandler() [1/3]

iox2::legacy::er::DefaultErrorHandler::DefaultErrorHandler ( )
default

◆ ~DefaultErrorHandler()

iox2::legacy::er::DefaultErrorHandler::~DefaultErrorHandler ( )
overridedefault

◆ DefaultErrorHandler() [2/3]

iox2::legacy::er::DefaultErrorHandler::DefaultErrorHandler ( const DefaultErrorHandler )
delete

◆ DefaultErrorHandler() [3/3]

iox2::legacy::er::DefaultErrorHandler::DefaultErrorHandler ( DefaultErrorHandler &&  )
delete

Member Function Documentation

◆ onPanic()

void iox2::legacy::er::DefaultErrorHandler::onPanic ( )
inlineoverridevirtual

Defines the reaction on panic.

Implements iox2::legacy::er::ErrorHandlerInterface.

Definition at line 39 of file default_error_handler.hpp.

◆ onReportError()

void iox2::legacy::er::DefaultErrorHandler::onReportError ( ErrorDescriptor  )
inlineoverridevirtual

Defines the reaction on error.

Parameters
descerror descriptor

Implements iox2::legacy::er::ErrorHandlerInterface.

Definition at line 44 of file default_error_handler.hpp.

◆ onReportViolation()

void iox2::legacy::er::DefaultErrorHandler::onReportViolation ( ErrorDescriptor  )
inlineoverridevirtual

Defines the reaction on violation.

Parameters
descerror descriptor

Implements iox2::legacy::er::ErrorHandlerInterface.

Definition at line 49 of file default_error_handler.hpp.

◆ operator=() [1/2]

DefaultErrorHandler & iox2::legacy::er::DefaultErrorHandler::operator= ( const DefaultErrorHandler )
delete

◆ operator=() [2/2]

DefaultErrorHandler & iox2::legacy::er::DefaultErrorHandler::operator= ( DefaultErrorHandler &&  )
delete

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