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 | 3a7e2b9a7bde4682f2273022e9d2ddecd7e5e3b8 (patch) | |
tree | d5dc58209bd8fa28047c54a11c09bc64505d5354 /libsqlitepp/sqlite-error.h | |
parent | Remove rebind (diff) | |
download | libdbpp-sqlite-3a7e2b9a7bde4682f2273022e9d2ddecd7e5e3b8.tar.bz2 libdbpp-sqlite-3a7e2b9a7bde4682f2273022e9d2ddecd7e5e3b8.tar.xz libdbpp-sqlite-3a7e2b9a7bde4682f2273022e9d2ddecd7e5e3b8.zip |
Reshuffle and add new exceptions
Diffstat (limited to 'libsqlitepp/sqlite-error.h')
-rw-r--r-- | libsqlitepp/sqlite-error.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libsqlitepp/sqlite-error.h b/libsqlitepp/sqlite-error.h index 3f8d32e..a42d2e4 100644 --- a/libsqlitepp/sqlite-error.h +++ b/libsqlitepp/sqlite-error.h @@ -2,21 +2,19 @@ #define SQLITE_ERROR_H #include <error.h> +#include <exception.h> +#include <sqlite3.h> +#include <visibility.h> namespace SQLite { - class Error : public DB::Error { + class Error : public AdHoc::Exception<DB::Error> { public: - Error(); - Error(const Error &); - Error(const char *); - ~Error() throw(); + Error(sqlite3 *); - const char * what() const throw(); + std::string message() const throw() override; private: - char * msg; - }; - class ConnectionError : public Error, public virtual DB::ConnectionError { + std::string msg; }; } |