17 #ifndef MASTODONPP_EXCEPTIONS_HPP
18 #define MASTODONPP_EXCEPTIONS_HPP
20 #include <curl/curl.h>
48 explicit CURLException(
const CURLcode &error,
string message);
80 [[nodiscard]]
const char *
what() const noexcept override;
83 const
string _message;
84 const
string _error_buffer;
Exception for libcurl errors.
Definition: exceptions.hpp:41
const CURLcode error_code
The error code returned by libcurl.
Definition: exceptions.hpp:73
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
C++ wrapper for the Mastodon API.
Definition: api.hpp:25