summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-error.h
blob: fb9412c03485b96d4e3f6c78296f6aa700bf2053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef ODBC_ERROR_H
#define ODBC_ERROR_H

#include <sql.h>
#include <stdlib.h>
#include <exception.h>
#include <error.h>

namespace ODBC {
	class Error : public AdHoc::Exception<DB::Error> {
		public:
			Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle);

			std::string message() const throw() override;

		private:
			std::string msg;
	};
}

#endif