summaryrefslogtreecommitdiff
path: root/libpqpp/error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/error.cpp')
-rw-r--r--libpqpp/error.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpqpp/error.cpp b/libpqpp/error.cpp
index 0886238..8664b70 100644
--- a/libpqpp/error.cpp
+++ b/libpqpp/error.cpp
@@ -26,3 +26,8 @@ PQ::Error::what() const throw()
return msg ? msg : "No message";
}
+PQ::ConnectionError::ConnectionError(const PGconn * conn) :
+ PQ::Error(PQerrorMessage(conn))
+{
+}
+