summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-error.h
blob: 6b97d37f46099e4e5b55dc39f137023a9f066d7b (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 <error.h> // IWYU pragma: keep
#include <exception.h>
#include <sql.h>
#include <string>

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

		std::string message() const noexcept override;

	private:
		std::string msg;
	};
}

#endif