|
unilink
0.4.3
A simple C++ library for unified async communication
|
Convenience functions for common error reporting scenarios. More...
Functions | |
| void | report_connection_error (std::string_view component, std::string_view operation, const boost::system::error_code &ec, bool retryable=true) |
| Report connection-related error. More... | |
| void | report_communication_error (std::string_view component, std::string_view operation, std::string_view message, bool retryable=false) |
| Report communication-related error. More... | |
| void | report_configuration_error (std::string_view component, std::string_view operation, std::string_view message) |
| Report configuration error. More... | |
| void | report_memory_error (std::string_view component, std::string_view operation, std::string_view message) |
| Report memory-related error. More... | |
| void | report_system_error (std::string_view component, std::string_view operation, std::string_view message, const boost::system::error_code &ec=boost::system::error_code{}) |
| Report system-level error. More... | |
| void | report_warning (std::string_view component, std::string_view operation, std::string_view message) |
| Report warning (non-critical issue) More... | |
| void | report_info (std::string_view component, std::string_view operation, std::string_view message) |
| Report informational message. More... | |
Convenience functions for common error reporting scenarios.
| UNILINK_API void unilink::diagnostics::error_reporting::report_communication_error | ( | std::string_view | component, |
| std::string_view | operation, | ||
| std::string_view | message, | ||
| bool | retryable = false |
||
| ) |
Report communication-related error.
| component | Component name |
| operation | Operation that failed (e.g., "read", "write") |
| message | Error message |
| retryable | Whether this error is retryable |
Definition at line 189 of file error_handler.cc.
| UNILINK_API void unilink::diagnostics::error_reporting::report_configuration_error | ( | std::string_view | component, |
| std::string_view | operation, | ||
| std::string_view | message | ||
| ) |
Report configuration error.
| component | Component name |
| operation | Operation that failed (e.g., "validate", "apply") |
| message | Error message |
Definition at line 196 of file error_handler.cc.
| UNILINK_API void unilink::diagnostics::error_reporting::report_connection_error | ( | std::string_view | component, |
| std::string_view | operation, | ||
| const boost::system::error_code & | ec, | ||
| bool | retryable = true |
||
| ) |
Report connection-related error.
| component | Component name (e.g., "serial", "tcp_server") |
| operation | Operation that failed (e.g., "connect", "bind") |
| ec | Boost error code |
| retryable | Whether this error is retryable |
Definition at line 183 of file error_handler.cc.
| UNILINK_API void unilink::diagnostics::error_reporting::report_info | ( | std::string_view | component, |
| std::string_view | operation, | ||
| std::string_view | message | ||
| ) |
Report informational message.
| component | Component name |
| operation | Operation |
| message | Information message |
Definition at line 217 of file error_handler.cc.
| UNILINK_API void unilink::diagnostics::error_reporting::report_memory_error | ( | std::string_view | component, |
| std::string_view | operation, | ||
| std::string_view | message | ||
| ) |
Report memory-related error.
| component | Component name |
| operation | Operation that failed (e.g., "allocate", "deallocate") |
| message | Error message |
Definition at line 201 of file error_handler.cc.
| UNILINK_API void unilink::diagnostics::error_reporting::report_system_error | ( | std::string_view | component, |
| std::string_view | operation, | ||
| std::string_view | message, | ||
| const boost::system::error_code & | ec = boost::system::error_code{} |
||
| ) |
Report system-level error.
| component | Component name |
| operation | Operation that failed |
| message | Error message |
| ec | Optional Boost error code |
Definition at line 206 of file error_handler.cc.
| UNILINK_API void unilink::diagnostics::error_reporting::report_warning | ( | std::string_view | component, |
| std::string_view | operation, | ||
| std::string_view | message | ||
| ) |
Report warning (non-critical issue)
| component | Component name |
| operation | Operation |
| message | Warning message |
Definition at line 212 of file error_handler.cc.