summaryrefslogtreecommitdiff
path: root/libodbcpp/error.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2006-07-08 16:32:05 +0000
committerrandomdan <randomdan@localhost>2006-07-08 16:32:05 +0000
commit2a1fa15d8baa4eda37e17b2e9362f8bde17a939d (patch)
tree09386e52320b7c52a521ab56fc7553896e639dcd /libodbcpp/error.h
downloadlibdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.bz2
libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.xz
libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.zip
libcodbcpp initial release
Diffstat (limited to 'libodbcpp/error.h')
-rw-r--r--libodbcpp/error.h16
1 files changed, 16 insertions, 0 deletions
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 <sql.h>
+
+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