From be237957454cd7a4e84a5a603bdef6ab3ab8b8e1 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 --- libodbcpp/odbc-error.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'libodbcpp/odbc-error.h') 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 #include -#include +#include #include namespace ODBC { - class Error : public DB::Error { + class Error : public AdHoc::Exception { 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; }; } -- cgit v1.2.3