From 3a7e2b9a7bde4682f2273022e9d2ddecd7e5e3b8 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 --- libsqlitepp/sqlite-error.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'libsqlitepp/sqlite-error.h') 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 +#include +#include +#include namespace SQLite { - class Error : public DB::Error { + class Error : public AdHoc::Exception { 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; }; } -- cgit v1.2.3