|
libpqxx 7.7.5
|
Exception class for failed queries. More...
#include <except.hxx>

Public Member Functions | |
| sql_error (std::string const &whatarg="", std::string const &Q="", char const sqlstate[]=nullptr) | |
| virtual | ~sql_error () noexcept override |
| PQXX_PURE std::string const & | query () const noexcept |
| The query whose execution triggered the exception. | |
| PQXX_PURE std::string const & | sqlstate () const noexcept |
| SQLSTATE error code if known, or empty string otherwise. | |
Public Member Functions inherited from pqxx::failure | |
| failure (std::string const &) | |
Exception class for failed queries.
Carries, in addition to a regular error message, a copy of the failed query and (if available) the SQLSTATE value accompanying the error.
|
explicit |
|
overridevirtualdefaultnoexcept |
|
noexcept |
The query whose execution triggered the exception.
|
noexcept |
SQLSTATE error code if known, or empty string otherwise.