diff options
Diffstat (limited to 'libodbcpp/error.h')
-rw-r--r-- | libodbcpp/error.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libodbcpp/error.h b/libodbcpp/error.h index 73fa3bc..f3a2f79 100644 --- a/libodbcpp/error.h +++ b/libodbcpp/error.h @@ -4,14 +4,13 @@ #include <sql.h> #include <stdlib.h> #include <exception> +#include "../libdbpp/error.h" namespace ODBC { - class Error : public std::exception { + class Error : public DB::Error { 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(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const * action); + Error(char const * action); ~Error() throw(); const char * what() const throw(); |