unilink  0.4.3
A simple C++ library for unified async communication
unilink::diagnostics Namespace Reference

Namespaces

 

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

Enumeration Type Documentation

◆ ErrorCategory

Error categories for classification.

Enumerator
CONNECTION 
COMMUNICATION 
CONFIGURATION 
MEMORY 
SYSTEM 
UNKNOWN 

Definition at line 52 of file error_types.hpp.

◆ ErrorLevel

Error severity levels.

Enumerator
INFO 
WARNING 
ERROR 
CRITICAL 

Definition at line 42 of file error_types.hpp.

◆ LogLevel

Log severity levels.

Enumerator
DEBUG 
INFO 
WARNING 
ERROR 
CRITICAL 

Definition at line 55 of file logger.hpp.

◆ LogOutput

Log output destinations.

Enumerator
CONSOLE 
FILE 
CALLBACK 

Definition at line 60 of file logger.hpp.

Function Documentation

◆ is_retryable_tcp_connect_error()

bool unilink::diagnostics::is_retryable_tcp_connect_error ( const boost::system::error_code &  ec)
inline

Determines if a TCP connection error is retryable.

Definition at line 72 of file error_mapping.hpp.

◆ to_error_context()

wrapper::ErrorContext unilink::diagnostics::to_error_context ( const diagnostics::ErrorInfo info,
std::optional< size_t >  client_id = std::nullopt 
)
inline

Converts ErrorInfo to wrapper::ErrorContext.

Definition at line 97 of file error_mapping.hpp.

◆ to_unilink_error_code()

ErrorCode unilink::diagnostics::to_unilink_error_code ( const boost::system::error_code &  ec)
inline

Maps boost::system::error_code to Unilink ErrorCode.

Definition at line 34 of file error_mapping.hpp.