libpqxx  4.0.1
pqxx::syntax_error Class Reference

#include <except.hxx>

Inheritance diagram for pqxx::syntax_error:
pqxx::sql_error pqxx::failure pqxx::pqxx_exception pqxx::undefined_column pqxx::undefined_function pqxx::undefined_table

Public Member Functions

 syntax_error (const std::string &err, int pos=-1)
 syntax_error (const std::string &err, const std::string &Q, int pos=-1)
- Public Member Functions inherited from pqxx::sql_error
 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.
- 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.
virtual const PQXX_CONST
std::exception & 
base () const =0 throw ()
 Return std::exception base-class object.

Public Attributes

const int error_position
 Approximate position in string where error occurred, or -1 if unknown.

Constructor & Destructor Documentation

pqxx::syntax_error::syntax_error ( const std::string &  err,
int  pos = -1 
)
explicit
pqxx::syntax_error::syntax_error ( const std::string &  err,
const std::string &  Q,
int  pos = -1 
)

Member Data Documentation

const int pqxx::syntax_error::error_position

Approximate position in string where error occurred, or -1 if unknown.


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