summaryrefslogtreecommitdiff
path: root/libpqpp/pq-connection.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 02:42:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commitb9791d291ed64b30b254ff8b1fc044814e7d510a (patch)
treeec099237d5c0edda62d61cbba2c23ae024d6eea4 /libpqpp/pq-connection.h
parentRemove rebind (diff)
downloadlibdbpp-postgresql-b9791d291ed64b30b254ff8b1fc044814e7d510a.tar.bz2
libdbpp-postgresql-b9791d291ed64b30b254ff8b1fc044814e7d510a.tar.xz
libdbpp-postgresql-b9791d291ed64b30b254ff8b1fc044814e7d510a.zip
Reshuffle and add new exceptions
Diffstat (limited to 'libpqpp/pq-connection.h')
-rw-r--r--libpqpp/pq-connection.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpqpp/pq-connection.h b/libpqpp/pq-connection.h
index 618c875..b7687cb 100644
--- a/libpqpp/pq-connection.h
+++ b/libpqpp/pq-connection.h
@@ -4,8 +4,14 @@
#include <connection.h>
#include <libpq-fe.h>
#include <visibility.h>
+#include "pq-error.h"
namespace PQ {
+ class ConnectionError : public virtual Error, public virtual DB::ConnectionError {
+ public:
+ ConnectionError(const PGconn *);
+ };
+
class DLL_PUBLIC Connection : public DB::Connection {
public:
Connection(const std::string & info);