summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-error.h
blob: 85fff638e09c9565a237927861816d12197e182d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MY_ERROR_H
#define MY_ERROR_H

#include <error.h>
#include <exception.h>
#include <mysql.h>

namespace MySQL {
	class Error : public AdHoc::Exception<DB::Error> {
	public:
		explicit Error(MYSQL_STMT *);
		explicit Error(MYSQL *);
		std::string message() const noexcept override;

	private:
		std::string msg;
	};
}

#endif