unilink  0.4.3
A simple C++ library for unified async communication
error_mapping.hpp File Reference
#include <boost/asio/error.hpp>
#include <boost/system/error_code.hpp>
#include <optional>
#include <string>
#include "unilink/base/error_codes.hpp"
#include "unilink/diagnostics/error_types.hpp"
#include "unilink/wrapper/context.hpp"

Go to the source code of this file.

Namespaces

 
 

Functions

ErrorCode unilink::diagnostics::to_unilink_error_code (const boost::system::error_code &ec)
 Maps boost::system::error_code to Unilink ErrorCode. More...
 
bool unilink::diagnostics::is_retryable_tcp_connect_error (const boost::system::error_code &ec)
 Determines if a TCP connection error is retryable. More...
 
wrapper::ErrorContext unilink::diagnostics::to_error_context (const diagnostics::ErrorInfo &info, std::optional< size_t > client_id=std::nullopt)
 Converts ErrorInfo to wrapper::ErrorContext. More...