summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-error.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-error.h')
-rw-r--r--libmysqlpp/my-error.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/libmysqlpp/my-error.h b/libmysqlpp/my-error.h
index b4f93b2..b694843 100644
--- a/libmysqlpp/my-error.h
+++ b/libmysqlpp/my-error.h
@@ -2,21 +2,18 @@
#define MY_ERROR_H
#include <error.h>
+#include <mysql.h>
+#include <exception.h>
namespace MySQL {
- class Error : public DB::Error {
+ class Error : public AdHoc::Exception<DB::Error> {
public:
- Error();
- Error(const Error &);
- Error(const char *);
- ~Error() throw();
-
- const char * what() const throw();
+ Error(MYSQL_STMT *);
+ Error(MYSQL *);
+ std::string message() const throw() override;
private:
- char * msg;
- };
- class ConnectionError : public Error, public virtual DB::ConnectionError {
+ std::string msg;
};
}