summaryrefslogtreecommitdiff
path: root/libpqpp/pq-error.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-error.h')
-rw-r--r--libpqpp/pq-error.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/libpqpp/pq-error.h b/libpqpp/pq-error.h
index 8e7c4bc..fdc855b 100644
--- a/libpqpp/pq-error.h
+++ b/libpqpp/pq-error.h
@@ -3,24 +3,17 @@
#include <error.h>
#include <libpq-fe.h>
-#include <visibility.h>
+#include <exception.h>
namespace PQ {
- class DLL_PUBLIC Error : public DB::Error {
+ class Error : public AdHoc::Exception<DB::Error> {
public:
- Error();
- Error(const Error &);
- Error(const char *);
- ~Error() throw();
+ Error(const PGconn *);
- const char * what() const throw();
+ std::string message() const throw() override;
private:
- char * msg;
- };
- class DLL_PUBLIC ConnectionError : public Error, public virtual DB::ConnectionError {
- public:
- ConnectionError(const PGconn *);
+ std::string msg;
};
}