diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 02:42:43 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 06:00:07 +0000 |
commit | 97c3d4c1604b525e4522814e34723488c59a83f5 (patch) | |
tree | cd9ca0e4b7013d4af1c85c4a677a2cbb12bb9603 /libmysqlpp/my-error.h | |
parent | Remove rebind (diff) | |
download | libdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.tar.bz2 libdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.tar.xz libdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.zip |
Reshuffle and add new exceptions
Diffstat (limited to 'libmysqlpp/my-error.h')
-rw-r--r-- | libmysqlpp/my-error.h | 17 |
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; }; } |