From 63d9cbb434ec4f6e828083b99d638127cfce7a95 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 24 Dec 2015 04:08:56 +0000 Subject: ODBC files prefixed with odbc- --- libodbcpp/odbc-error.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libodbcpp/odbc-error.h (limited to 'libodbcpp/odbc-error.h') diff --git a/libodbcpp/odbc-error.h b/libodbcpp/odbc-error.h new file mode 100644 index 0000000..0348980 --- /dev/null +++ b/libodbcpp/odbc-error.h @@ -0,0 +1,24 @@ +#ifndef ODBC_ERROR_H +#define ODBC_ERROR_H + +#include +#include +#include +#include + +namespace ODBC { + class Error : public DB::Error { + public: + Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const * action); + Error(char const * action); + ~Error() throw(); + + const char * what() const throw(); + protected: + Error(char * msg); + private: + char * msg; + }; +} + +#endif -- cgit v1.2.3