summaryrefslogtreecommitdiff
path: root/libpqpp/pq-error.cpp
blob: 17b4e0afbdb2d068334fedd082952d9a0a661e76 (plain)
1
2
3
4
5
6
7
8
9
10
#include "pq-error.h"
#include <libpq-fe.h>

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

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