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

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

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

		private:
			std::string msg;
	};
}

#endif