|
unilink
0.4.3
A simple C++ library for unified async communication
|
Namespaces | |
| error_reporting | |
| Convenience functions for common error reporting scenarios. | |
Classes | |
| class | ErrorHandler |
| Centralized error handling system. More... | |
| struct | ErrorInfo |
| Comprehensive error information structure. More... | |
| struct | ErrorStats |
| Error statistics for monitoring. More... | |
| class | UnilinkException |
| Base exception class for all unilink exceptions. More... | |
| class | BuilderException |
| Exception thrown during builder operations. More... | |
| class | ValidationException |
| Exception thrown during input validation. More... | |
| class | MemoryException |
| Exception thrown during memory operations. More... | |
| class | ConnectionException |
| Exception thrown during connection operations. More... | |
| class | ConfigurationException |
| Exception thrown during configuration operations. More... | |
| struct | LogRotationConfig |
| Log rotation configuration. More... | |
| class | LogRotation |
| Log rotation manager. More... | |
| struct | LogEntry |
| Log entry structure for async processing. More... | |
| struct | AsyncLogConfig |
| Async logging configuration. More... | |
| struct | AsyncLogStats |
| Async logging statistics. More... | |
| class | Logger |
| Centralized logging system with async support. More... | |
Enumerations | |
| enum class | ErrorLevel { INFO = 0 , WARNING = 1 , ERROR = 2 , CRITICAL = 3 } |
| Error severity levels. More... | |
| enum class | ErrorCategory { CONNECTION = 0 , COMMUNICATION = 1 , CONFIGURATION = 2 , MEMORY = 3 , SYSTEM = 4 , UNKNOWN = 5 } |
| Error categories for classification. More... | |
| enum class | LogLevel { DEBUG = 0 , INFO = 1 , WARNING = 2 , ERROR = 3 , CRITICAL = 4 } |
| Log severity levels. More... | |
| enum class | LogOutput { CONSOLE = 0x01 , FILE = 0x02 , CALLBACK = 0x04 } |
| Log output destinations. More... | |
Functions | |
| ErrorCode | to_unilink_error_code (const boost::system::error_code &ec) |
| Maps boost::system::error_code to Unilink ErrorCode. More... | |
| bool | is_retryable_tcp_connect_error (const boost::system::error_code &ec) |
| Determines if a TCP connection error is retryable. More... | |
| wrapper::ErrorContext | to_error_context (const diagnostics::ErrorInfo &info, std::optional< size_t > client_id=std::nullopt) |
| Converts ErrorInfo to wrapper::ErrorContext. More... | |
|
strong |
Error categories for classification.
| Enumerator | |
|---|---|
| CONNECTION | |
| COMMUNICATION | |
| CONFIGURATION | |
| MEMORY | |
| SYSTEM | |
| UNKNOWN | |
Definition at line 52 of file error_types.hpp.
|
strong |
Error severity levels.
| Enumerator | |
|---|---|
| INFO | |
| WARNING | |
| ERROR | |
| CRITICAL | |
Definition at line 42 of file error_types.hpp.
|
strong |
Log severity levels.
| Enumerator | |
|---|---|
| DEBUG | |
| INFO | |
| WARNING | |
| ERROR | |
| CRITICAL | |
Definition at line 55 of file logger.hpp.
|
strong |
|
inline |
Determines if a TCP connection error is retryable.
Definition at line 72 of file error_mapping.hpp.
|
inline |
Converts ErrorInfo to wrapper::ErrorContext.
Definition at line 97 of file error_mapping.hpp.
|
inline |
Maps boost::system::error_code to Unilink ErrorCode.
Definition at line 34 of file error_mapping.hpp.