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