Kurlyk
Loading...
Searching...
No Matches
ClientErrorCategory.hpp File Reference

Declares the ClientError enumeration and error category for internal client-side failures. More...

Go to the source code of this file.

Classes

class  kurlyk::utils::ClientErrorCategory
 Custom std::error_category for reporting internal client errors not tied to specific protocols (e.g., CURL, HTTP). More...
 
struct  std::is_error_code_enum< kurlyk::utils::ClientError >
 

Namespaces

namespace  kurlyk
 Primary namespace for the Kurlyk library, encompassing initialization, request management, and utility functions.
 
namespace  kurlyk::utils
 
namespace  std
 Enables use of ClientError with std::error_code.
 

Macros

#define _KURLYK_UTILS_CLIENT_ERROR_CATEGORY_HPP_INCLUDED
 

Enumerations

enum class  kurlyk::utils::ClientError {
  kurlyk::utils::CancelledByUser = 1 , kurlyk::utils::AbortedDuringDestruction , kurlyk::utils::ClientNotInitialized , kurlyk::utils::InvalidConfiguration ,
  kurlyk::utils::NotConnected
}
 Defines errors related to the internal state or lifecycle of the HTTP/WebSocket client. More...
 

Functions

const std::error_category & kurlyk::utils::client_error_category ()
 Returns the singleton instance of the ClientErrorCategory.
 
std::error_code kurlyk::utils::make_error_code (ClientError e)
 Creates a std::error_code from a ClientError value.
 

Detailed Description

Declares the ClientError enumeration and error category for internal client-side failures.

Definition in file ClientErrorCategory.hpp.

Macro Definition Documentation

◆ _KURLYK_UTILS_CLIENT_ERROR_CATEGORY_HPP_INCLUDED

#define _KURLYK_UTILS_CLIENT_ERROR_CATEGORY_HPP_INCLUDED

Definition at line 3 of file ClientErrorCategory.hpp.