summaryrefslogtreecommitdiff
path: root/libpqpp/error.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-02 21:21:57 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-02 21:21:57 +0000
commit0768666d941af819c8fc20fc872609d4107c7bd2 (patch)
tree50b46946e1eb2a52189670661054744e3c5664fc /libpqpp/error.h
parentTidy up and alias glibmm and libxml++ refs (diff)
downloadlibdbpp-postgresql-0768666d941af819c8fc20fc872609d4107c7bd2.tar.bz2
libdbpp-postgresql-0768666d941af819c8fc20fc872609d4107c7bd2.tar.xz
libdbpp-postgresql-0768666d941af819c8fc20fc872609d4107c7bd2.zip
Propergate connection error details into DB::Error and add test
Diffstat (limited to 'libpqpp/error.h')
-rw-r--r--libpqpp/error.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libpqpp/error.h b/libpqpp/error.h
index 2acbce3..8e7c4bc 100644
--- a/libpqpp/error.h
+++ b/libpqpp/error.h
@@ -2,9 +2,11 @@
#define PQ_ERROR_H
#include <error.h>
+#include <libpq-fe.h>
+#include <visibility.h>
namespace PQ {
- class Error : public DB::Error {
+ class DLL_PUBLIC Error : public DB::Error {
public:
Error();
Error(const Error &);
@@ -16,7 +18,9 @@ namespace PQ {
private:
char * msg;
};
- class ConnectionError : public Error, public virtual DB::ConnectionError {
+ class DLL_PUBLIC ConnectionError : public Error, public virtual DB::ConnectionError {
+ public:
+ ConnectionError(const PGconn *);
};
}