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

#include "error.h" // IWYU pragma: export
#include <exception.h>
#include <libpq-fe.h>
#include <string>
// IWYU pragma: no_forward_declare DB::Error

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

		std::string message() const noexcept override;

	private:
		std::string msg;
	};
}

#endif