Exception class for failed queries. More...
#include <except.hxx>
Public Member Functions | |
sql_error () | |
sql_error (const PGSTD::string &) | |
sql_error (const PGSTD::string &, const PGSTD::string &Q) | |
virtual | ~sql_error () throw () |
const PGSTD::string &PQXX_PURE | query () const throw () |
The query whose execution triggered the exception. More... | |
Private Attributes | |
PGSTD::string | m_Q |
Exception class for failed queries.
Carries a copy of the failed query in addition to a regular error message
pqxx::sql_error::sql_error | ( | ) |
|
explicit |
pqxx::sql_error::sql_error | ( | const PGSTD::string & | , |
const PGSTD::string & | Q | ||
) |
|
virtual |
const PGSTD::string& PQXX_PURE pqxx::sql_error::query | ( | ) | const throw () |
The query whose execution triggered the exception.
|
private |