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