summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-error.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsqlitepp/sqlite-error.h')
-rw-r--r--libsqlitepp/sqlite-error.h16
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;
};
}