Exception for libcurl errors.
More...
#include <exceptions.hpp>
|
| CURLException (const CURLcode code) |
| Constructor with error code. More...
|
|
| CURLException (const CURLcode code, string_view error_buffer) |
| Constructor with error code and error message. More...
|
|
const char * | what () const noexcept override |
| Error message. More...
|
|
Exception for libcurl errors.
- Since
- 0.1.0
◆ CURLException() [1/2]
pornsieve::CURLException::CURLException |
( |
const CURLcode |
code | ) |
|
|
inlineexplicit |
Constructor with error code.
- Since
- 0.1.0
◆ CURLException() [2/2]
pornsieve::CURLException::CURLException |
( |
const CURLcode |
code, |
|
|
string_view |
error_buffer |
|
) |
| |
|
inlineexplicit |
Constructor with error code and error message.
- Since
- 0.1.0
◆ what()
const char * pornsieve::CURLException::what |
( |
| ) |
const |
|
overridenoexcept |
Error message.
- Since
- 0.1.0
34 static string error_string;
36 if (!error_string.empty())
38 error_string =
" – " + error_string;
40 format(
"libcurl error: {:d}{:s}",
error_code, error_string);
41 return error_string.c_str();
◆ error_code
const CURLcode pornsieve::CURLException::error_code |
◆ error_message
const string pornsieve::CURLException::error_message |
The documentation for this class was generated from the following files: