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

Defines the WebSocketError enumeration and corresponding error category for WebSocket-level failures. More...

Go to the source code of this file.

Classes

class  kurlyk::utils::WebSocketErrorCategory
 Error category class for WebSocketError enumeration. More...
 
struct  std::is_error_code_enum< kurlyk::utils::WebSocketError >
 

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_WEBSOCKET_ERROR_CATEGORY_HPP_INCLUDED
 

Enumerations

enum class  kurlyk::utils::WebSocketError {
  kurlyk::utils::ConnectionFailed = 1 , kurlyk::utils::UnexpectedClose , kurlyk::utils::ProtocolViolation , kurlyk::utils::UnsupportedDataType ,
  kurlyk::utils::InvalidCloseCode , kurlyk::utils::CompressionError
}
 Represents protocol-level WebSocket errors. More...
 

Functions

const std::error_category & kurlyk::utils::websocket_error_category ()
 Returns the singleton instance of the WebSocket error category.
 
std::error_code kurlyk::utils::make_error_code (WebSocketError e)
 Constructs an std::error_code from a WebSocketError.
 

Detailed Description

Defines the WebSocketError enumeration and corresponding error category for WebSocket-level failures.

Definition in file WebSocketErrorCategory.hpp.

Macro Definition Documentation

◆ _KURLYK_UTILS_WEBSOCKET_ERROR_CATEGORY_HPP_INCLUDED

#define _KURLYK_UTILS_WEBSOCKET_ERROR_CATEGORY_HPP_INCLUDED

Definition at line 3 of file WebSocketErrorCategory.hpp.