libpqxx  4.0.1
pqxx::sql_error Class Reference

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

Public Member Functions

 sql_error ()
 
 sql_error (const std::string &)
 
 sql_error (const std::string &, const std::string &Q)
 
virtual ~sql_error () throw ()
 
const std::string &PQXX_PURE query () const throw ()
 The query whose execution triggered the exception. More...
 
- Public Member Functions inherited from pqxx::failure
 failure (const std::string &)
 
- Public Member Functions inherited from pqxx::pqxx_exception
virtual ~pqxx_exception ()=0 throw ()
 Support run-time polymorphism, and keep this class abstract. More...
 

Detailed Description

Exception class for failed queries.

Carries a copy of the failed query in addition to a regular error message

Constructor & Destructor Documentation

pqxx::sql_error::sql_error ( )
pqxx::sql_error::sql_error ( const std::string &  whatarg)
explicit
pqxx::sql_error::sql_error ( const std::string &  whatarg,
const std::string &  Q 
)
pqxx::sql_error::~sql_error ( )
throw (
)
virtual

Member Function Documentation

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

The query whose execution triggered the exception.


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