From 55dc8fa7bef00c0d382860b2f9b0245731db2bcb Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 24 Dec 2015 04:00:01 +0000 Subject: PostgreSQL files prefixed with pq- --- libpqpp/error.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 libpqpp/error.cpp (limited to 'libpqpp/error.cpp') diff --git a/libpqpp/error.cpp b/libpqpp/error.cpp deleted file mode 100644 index f2bebd6..0000000 --- a/libpqpp/error.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "error.h" -#include - -PQ::Error::Error() : - msg(NULL) -{ -} - -PQ::Error::Error(const PQ::Error & e) : - msg(e.msg ? strdup(e.msg) : NULL) -{ -} - -PQ::Error::Error(const char * e) : - msg(e ? strdup(e) : NULL) -{ -} - -PQ::Error::~Error() throw() -{ - free(msg); -} - -const char * -PQ::Error::what() const throw() -{ - return msg ? msg : "No message"; -} - -PQ::ConnectionError::ConnectionError(const PGconn * conn) : - PQ::Error(PQerrorMessage(conn)) -{ -} - -- cgit v1.2.3