libpqxx  v4.0-1
C++ library for PostgreSQL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pqxx::sql_error Class Reference

Exception class for failed queries. More...

#include <except.hxx>

Inheritance diagram for pqxx::sql_error:
Collaboration diagram for pqxx::sql_error:

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
 

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 PGSTD::string &  )
explicit
pqxx::sql_error::sql_error ( const PGSTD::string &  ,
const PGSTD::string &  Q 
)
virtual pqxx::sql_error::~sql_error ( ) throw ()
virtual

Member Function Documentation

const PGSTD::string& PQXX_PURE pqxx::sql_error::query ( ) const throw ()

The query whose execution triggered the exception.

Member Data Documentation

PGSTD::string pqxx::sql_error::m_Q
private

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