#ifndef PQ_ERROR_H #define PQ_ERROR_H #include <error.h> #include <libpq-fe.h> #include <exception.h> namespace PQ { class Error : public AdHoc::Exception<DB::Error> { public: Error(const PGconn *); std::string message() const throw() override; private: std::string msg; }; } #endif