Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::events::error_event Struct Reference

Event published when an error occurs. More...

#include <event_bus.h>

Collaboration diagram for kcenon::common::events::error_event:
Collaboration graph

Public Member Functions

 error_event (const std::string &module, const std::string &message, int code)
 

Public Attributes

std::string module_name
 
std::string error_message
 
int error_code
 
std::chrono::steady_clock::time_point timestamp
 

Detailed Description

Event published when an error occurs.

Definition at line 532 of file event_bus.h.

Constructor & Destructor Documentation

◆ error_event()

kcenon::common::events::error_event::error_event ( const std::string & module,
const std::string & message,
int code )
inline

Definition at line 538 of file event_bus.h.

539 : module_name(module), error_message(message), error_code(code),
540 timestamp(std::chrono::steady_clock::now()) {}
std::chrono::steady_clock::time_point timestamp
Definition event_bus.h:536

Member Data Documentation

◆ error_code

int kcenon::common::events::error_event::error_code

Definition at line 535 of file event_bus.h.

◆ error_message

std::string kcenon::common::events::error_event::error_message

Definition at line 534 of file event_bus.h.

◆ module_name

std::string kcenon::common::events::error_event::module_name

Definition at line 533 of file event_bus.h.

◆ timestamp

std::chrono::steady_clock::time_point kcenon::common::events::error_event::timestamp

Definition at line 536 of file event_bus.h.


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