Kurlyk
Loading...
Searching...
No Matches
kurlyk::utils::CurlErrorCategory Class Reference

Represents a custom error category for CURL errors, enabling integration with std::error_code. More...

#include <CurlErrorCategory.hpp>

Inheritance diagram for kurlyk::utils::CurlErrorCategory:

Public Member Functions

const char * name () const noexcept override
 Returns the name of the error category.
 
std::string message (int ev) const override
 Returns a descriptive error message for a given CURL error code.
 

Detailed Description

Represents a custom error category for CURL errors, enabling integration with std::error_code.

Definition at line 12 of file CurlErrorCategory.hpp.

Member Function Documentation

◆ message()

std::string kurlyk::utils::CurlErrorCategory::message ( int ev) const
inlineoverride

Returns a descriptive error message for a given CURL error code.

Parameters
evThe integer value of the CURL error code.
Returns
A string describing the error associated with the specified CURL error code.

Definition at line 23 of file CurlErrorCategory.hpp.

◆ name()

const char * kurlyk::utils::CurlErrorCategory::name ( ) const
inlineoverridenoexcept

Returns the name of the error category.

Returns
A C-string representing the name of this error category ("curl").

Definition at line 16 of file CurlErrorCategory.hpp.


The documentation for this class was generated from the following file: