17 #ifndef MASTODONPP_EXCEPTIONS_HPP
18 #define MASTODONPP_EXCEPTIONS_HPP
20 #include <curl/curl.h>
46 explicit CURLException(
const CURLcode &error,
string message);
69 const char *
what() const noexcept override;
72 const
string _message;
73 const
string _error_buffer;
78 #endif // MASTODONPP_EXCEPTIONS_HPP
const CURLcode error_code
The error code returned by libcurl.
Definition: exceptions.hpp:61
Exception for libcurl errors.
Definition: exceptions.hpp:38
C++ wrapper for the Mastodon API.
Definition: api.cpp:23
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