crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Network::Curl::Exception Class Reference

Class for libcurl exceptions. More...

#include <Curl.hpp>

Inheritance diagram for crawlservpp::Network::Curl::Exception:
Collaboration diagram for crawlservpp::Network::Curl::Exception:

Public Member Functions

 Exception (const std::string &description)
 

Getter

std::string_view view () const noexcept
 Gets the description of the exception as a view to the underlying string. More...
 

Detailed Description

Class for libcurl exceptions.

This exception is being thrown when

  • the libcurl library could not be initialized
  • the used libcurl library does not support SSL
  • a specified cookie file has not be found
  • a HTTP request failed
  • information about a HTTP request could not be extracted
  • an invalid HTTP response code has been received
  • one of the HTTP response codes specified as errors has been received
  • URL encoding/decoding of a non-empty string has been attempted without successfully initialized libcurl library
  • any specific libcurl option could not be set

Use getCurlCode() to get the error code returned by the API, if available.

Constructor & Destructor Documentation

◆ Exception()

crawlservpp::Network::Curl::Exception::Exception ( const std::string &  description)
inlineexplicit

Member Function Documentation

◆ view()


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