pqxx::sql_error Class Reference
[Exception classes]

Exception class for failed queries. More...

#include <except.hxx>

Inheritance diagram for pqxx::sql_error:
pqxx::failure pqxx::pqxx_exception pqxx::data_exception pqxx::feature_not_supported pqxx::insufficient_privilege pqxx::insufficient_resources pqxx::integrity_constraint_violation pqxx::invalid_cursor_name pqxx::invalid_cursor_state pqxx::invalid_sql_statement_name pqxx::plpgsql_error pqxx::syntax_error

List of all members.

Public Member Functions

 sql_error (const std::string &msg="", const std::string &Q="", const char sqlstate[]=NULL)
virtual ~sql_error () PQXX_NOEXCEPT
PQXX_PURE const std::string & query () const PQXX_NOEXCEPT
 The query whose execution triggered the exception.
PQXX_PURE const std::string & sqlstate () const PQXX_NOEXCEPT

Detailed Description

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.


Constructor & Destructor Documentation

pqxx::sql_error::sql_error ( const std::string &  msg = "",
const std::string &  Q = "",
const char  sqlstate[] = NULL 
) [explicit]
pqxx::sql_error::~sql_error (  )  [virtual]

Member Function Documentation

PQXX_CONST const std::string & pqxx::sql_error::query (  )  const

The query whose execution triggered the exception.

PQXX_CONST const std::string & pqxx::sql_error::sqlstate (  )  const

The documentation for this class was generated from the following files:

Generated on 16 Mar 2017 for libpqxx by  doxygen 1.6.1