From 97c3d4c1604b525e4522814e34723488c59a83f5 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Dec 2015 02:42:43 +0000 Subject: Reshuffle and add new exceptions --- libmysqlpp/my-error.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'libmysqlpp/my-error.h') 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 +#include +#include namespace MySQL { - class Error : public DB::Error { + class Error : public AdHoc::Exception { 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; }; } -- cgit v1.2.3