uvco 0.1
Loading...
Searching...
No Matches
uvco::CurlException Class Reference

#include <curl.h>

Inheritance diagram for uvco::CurlException:
Collaboration diagram for uvco::CurlException:

Public Member Functions

 CurlException (CURLcode code, std::string url)
const char * what () const noexcept override

Private Attributes

std::string url_
CURLcode code_

Constructor & Destructor Documentation

◆ CurlException()

uvco::CurlException::CurlException ( CURLcode code,
std::string url )
inline
29 : url_{std::move(url)}, code_{code} {}
std::string url_
Definition curl.h:36
CURLcode code_
Definition curl.h:37

Member Function Documentation

◆ what()

const char * uvco::CurlException::what ( ) const
inlinenodiscardoverridenoexcept
31 {
32 return curl_easy_strerror(code_);
33 }

Member Data Documentation

◆ code_

CURLcode uvco::CurlException::code_
private

◆ url_

std::string uvco::CurlException::url_
private

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