blob: d1dbe68131a537f952292de81f63ce1197a4035f (
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 noexcept override;
private:
std::string msg;
};
}
#endif
|