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

#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;
	};
}