summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-error.h
blob: 4b9fb59df76042a897f37e35585f0a566a3dedd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef SQLITE_ERROR_H
#define SQLITE_ERROR_H

#include <error.h> // IWYU pragma: keep
#include <exception.h>
#include <sqlite3.h>
#include <string>

namespace SQLite {
	class Error : public AdHoc::Exception<DB::Error> {
	public:
		explicit Error(sqlite3 *);

		std::string message() const noexcept override;

	private:
		std::string msg;
	};
}

#endif