2#ifndef _KURLYK_UTILS_CURL_ERROR_CATEGORY_HPP_INCLUDED
3#define _KURLYK_UTILS_CURL_ERROR_CATEGORY_HPP_INCLUDED
16 const char*
name() const noexcept
override {
23 std::string
message(
int ev)
const override {
24 return curl_easy_strerror(
static_cast<CURLcode
>(ev));
33 return {
static_cast<int>(e), category};
Represents a custom error category for CURL errors, enabling integration with std::error_code.
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.
std::error_code make_error_code(ClientError e)
Creates a std::error_code from a ClientError value.