pornsieve
0.0.0
Search porn sites and filter the results using regular expressions
|
Go to the documentation of this file.
23 #ifndef PORNSIEVE_EXCEPTIONS_HPP
24 #define PORNSIEVE_EXCEPTIONS_HPP
26 #include <curl/curl.h>
31 #include <string_view>
37 using std::string_view;
75 [[nodiscard]]
const char *
what() const noexcept override;
113 [[nodiscard]]
const char *
what() const noexcept override;
116 string _error_message;
121 #endif // PORNSIEVE_EXCEPTIONS_HPP
const uint16_t error_code
HTTP status code.
Definition: exceptions.hpp:106
The namespace containing the pornsieve library.
Definition: config.hpp:30
Exception for libcurl errors.
Definition: exceptions.hpp:45
CURLException(const CURLcode code, string_view error_buffer)
Constructor with error code and error message.
Definition: exceptions.hpp:62
HTTPException(const uint16_t code, string_view error_message)
Constructor with error code and error message.
Definition: exceptions.hpp:101
Exception for HTTP errors.
Definition: exceptions.hpp:83
const string error_message
The error message.
Definition: exceptions.hpp:68
const CURLcode error_code
Error code from libcurl.
Definition: exceptions.hpp:67
HTTPException(const uint16_t code)
Constructor with error code.
Definition: exceptions.hpp:92
const char * what() const noexcept override
Error message.
Definition: exceptions.cpp:30
CURLException(const CURLcode code)
Constructor with error code.
Definition: exceptions.hpp:53