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

#include <error.h>
#include <libpq-fe.h>
#include <exception.h>

namespace PQ {
	class Error : public AdHoc::Exception<DB::Error> {
		public:
			Error(const PGconn *);

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

		private:
			std::string msg;
	};
}

#endif