summaryrefslogtreecommitdiff
path: root/libpqpp/pq-connection.h
diff options
context:
space:
mode:
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);