Appwrite C++ SDK
Auto-generated API documentation for the Appwrite C++ SDK
Loading...
Searching...
No Matches
AppwriteException.hpp
Go to the documentation of this file.
1/// @file AppwriteException.hpp
2/// @brief Declares the base exception class used to represent Appwrite SDK
3/// errors.
4#ifndef APPWRITEEXCEPTION_HPP
5#define APPWRITEEXCEPTION_HPP
6
7#include <exception>
8#include <string>
9
10class AppwriteException : public std::exception {
11 public:
12 explicit AppwriteException(const std::string &message) : message(message) {}
13 const char *what() const noexcept override { return message.c_str(); }
14
15 private:
16 std::string message;
17};
18
19#endif
const char * what() const noexcept override
AppwriteException(const std::string &message)