summaryrefslogtreecommitdiff
path: root/libpqpp/pq-error.h
blob: ffa47c113529fb4607f869b883c7577b4ede60ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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