From efd292508070835781a0d92448a3661279dfd307 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 13 Nov 2008 14:45:11 +0000 Subject: Lots of little fixes --- libodbcpp/error.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libodbcpp/error.h') diff --git a/libodbcpp/error.h b/libodbcpp/error.h index f7c2958..f283a7c 100644 --- a/libodbcpp/error.h +++ b/libodbcpp/error.h @@ -2,14 +2,20 @@ #define ODBC_ERROR_H #include +#include namespace ODBC { - class Error { + class Error : public std::exception { public: Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const * action, ...) __attribute__((format(printf, 5, 6))); Error(char const * action, ...) __attribute__((format(printf, 2, 3))); + ~Error() throw(); + + const char * what() const throw(); + private: + char * msg; }; } -- cgit v1.2.3