diff options
Diffstat (limited to 'libodbcpp/odbc-error.h')
-rw-r--r-- | libodbcpp/odbc-error.h | 15 |
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; }; } |