17 #ifndef MASTODONPP_EXCEPTIONS_HPP
18 #define MASTODONPP_EXCEPTIONS_HPP
20 #include <curl/curl.h>
48 explicit CURLException(
const CURLcode &error,
string message);
81 const char *
what() const noexcept override;
84 const
string _message;
85 const
string _error_buffer;
90 #endif // MASTODONPP_EXCEPTIONS_HPP
const CURLcode error_code
The error code returned by libcurl.
Definition: exceptions.hpp:73
Exception for libcurl errors.
Definition: exceptions.hpp:40
C++ wrapper for the Mastodon API.
Definition: api.cpp:19
const char * what() const noexcept override
Returns the error code, message and error buffer.
Definition: exceptions.cpp:44
CURLException(const CURLcode &error, string message)
Constructor with error code and message.
Definition: exceptions.cpp:27