summaryrefslogtreecommitdiff
path: root/libpqpp/pq-error.cpp
blob: 964d66b3d5f8a43b0afad2fd38196b78bf79680b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "pq-error.h"

PQ::Error::Error(const PGconn * conn) :
	msg(PQerrorMessage(conn))
{
}

std::string
PQ::Error::message() const noexcept
{
	return msg;
}