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

#include <sql.h>
#include <stdlib.h>
#include <exception>
#include "../libdbpp/error.h"

namespace ODBC {
	class Error : public DB::Error {
		public:
			Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const * action);
			Error(char const * action);
			~Error() throw();

			const char * what() const throw();
		protected:
			Error(char * msg);
		private:
			char * msg;
	};
}

#endif