summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-error.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 02:42:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commitbe237957454cd7a4e84a5a603bdef6ab3ab8b8e1 (patch)
treebfe7f06152b2d453bcd097d9913918473d8fecd7 /libodbcpp/odbc-error.h
parentRemove rebind (diff)
downloadlibdbpp-odbc-be237957454cd7a4e84a5a603bdef6ab3ab8b8e1.tar.bz2
libdbpp-odbc-be237957454cd7a4e84a5a603bdef6ab3ab8b8e1.tar.xz
libdbpp-odbc-be237957454cd7a4e84a5a603bdef6ab3ab8b8e1.zip
Reshuffle and add new exceptions
Diffstat (limited to 'libodbcpp/odbc-error.h')
-rw-r--r--libodbcpp/odbc-error.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/libodbcpp/odbc-error.h b/libodbcpp/odbc-error.h
index 0348980..fb9412c 100644
--- a/libodbcpp/odbc-error.h
+++ b/libodbcpp/odbc-error.h
@@ -3,21 +3,18 @@
#include <sql.h>
#include <stdlib.h>
-#include <exception>
+#include <exception.h>
#include <error.h>
namespace ODBC {
- class Error : public DB::Error {
+ class Error : public AdHoc::Exception<DB::Error> {
public:
- Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const * action);
- Error(char const * action);
- ~Error() throw();
+ Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle);
+
+ std::string message() const throw() override;
- const char * what() const throw();
- protected:
- Error(char * msg);
private:
- char * msg;
+ std::string msg;
};
}