lintel 0.2.0
Loading...
Searching...
No Matches
SQLException.h
Go to the documentation of this file.
1#ifndef LINTEL_SQLEXCEPTION_H
2#define LINTEL_SQLEXCEPTION_H
3
4#include <exception>
5#include <string>
6
7namespace lintel {
8namespace db {
10 class SQLException : public std::exception
11 {
12 private:
13 std::string m_message;
14
15 public:
16 SQLException() = delete;
17
19 explicit SQLException(std::string message) : m_message(std::move(message)) {}
20
21 [[nodiscard]] const char *what() const noexcept override { return m_message.c_str(); }
22 };
23}// namespace db
24
25}// namespace lintel
26#endif// LINTEL_SQLEXCEPTION_H
Definition SQLException.h:11
SQLException(std::string message)
Definition SQLException.h:19
const char * what() const noexcept override
Definition SQLException.h:21
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9