Kùzu C++ API
Loading...
Searching...
No Matches
exception.h
Go to the documentation of this file.
1#pragma once
2
3#include <exception>
4#include <string>
5
6#include "api.h"
7
8namespace kuzu {
9namespace common {
10
11class KUZU_API Exception : public std::exception {
12public:
13 explicit Exception(std::string msg);
14
15public:
16 const char* what() const noexcept override { return exception_message_.c_str(); }
17
18private:
19 std::string exception_message_;
20};
21
22} // namespace common
23} // namespace kuzu
#define KUZU_API
Definition api.h:25
Definition exception.h:11
const char * what() const noexcept override
Definition exception.h:16
Exception(std::string msg)
Definition alter_type.h:5