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

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

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