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

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

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

		private:
			std::string msg;
	};
}

#endif