Ditto 3.0.6
Errors.hpp
1#ifndef _DITTO_ERRORS_
2#define _DITTO_ERRORS_
3
4#include <exception>
5#include <string>
6
7namespace ditto {
14class DittoError : public std::exception {
15 std::string message;
16
17public:
18 DittoError();
19 explicit DittoError(std::string msg);
20
26 const char *what() const noexcept override;
27};
28} // namespace ditto
29
30#endif
All errors that are thrown by the Ditto SDK are wrapped as a DittoError.
Definition: Errors.hpp:14
const char * what() const noexcept override
Returns the explanatory string.
Definition: Errors.cpp:18