Pgsql::Connection::connect functions now all report connection errors

by throwing exception.
This commit is contained in:
eelke 2019-11-03 07:58:48 +01:00
parent 05bca069e3
commit c5f6da48ce
5 changed files with 35 additions and 39 deletions

View file

@ -34,15 +34,14 @@ namespace Pgsql {
Pgsql::ErrorDetails m_details;
};
// class PgConnectionError: public PgException {
// public:
// PgConnectionError(const std::string &msg, std::string result_code)
// : PgResultError(msg, std::move(result_code))
// {}
// private:
class PgConnectionError: public PgException {
public:
PgConnectionError(const std::string &msg)
: PgException(msg)
{}
private:
// };
};