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

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

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