Pgsql::Connection::connect functions now all report connection errors
by throwing exception.
This commit is contained in:
parent
05bca069e3
commit
c5f6da48ce
5 changed files with 35 additions and 39 deletions
|
|
@ -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:
|
||||
|
||||
// };
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue