From 2a1fa15d8baa4eda37e17b2e9362f8bde17a939d Mon Sep 17 00:00:00 2001 From: randomdan Date: Sat, 8 Jul 2006 16:32:05 +0000 Subject: libcodbcpp initial release --- libodbcpp/error.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libodbcpp/error.h (limited to 'libodbcpp/error.h') diff --git a/libodbcpp/error.h b/libodbcpp/error.h new file mode 100644 index 0000000..f7c2958 --- /dev/null +++ b/libodbcpp/error.h @@ -0,0 +1,16 @@ +#ifndef ODBC_ERROR_H +#define ODBC_ERROR_H + +#include + +namespace ODBC { + class 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))); + }; +} + +#endif -- cgit v1.2.3