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

#include <except.hxx>

Inheritance diagram for pqxx::syntax_error:
Collaboration diagram for pqxx::syntax_error:

Public Member Functions

 syntax_error (const PGSTD::string &err, int pos=-1)
 
 syntax_error (const PGSTD::string &err, const PGSTD::string &Q, int pos=-1)
 
const PGSTD::string &PQXX_PURE query () const throw ()
 The query whose execution triggered the exception. More...
 

Public Attributes

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

Constructor & Destructor Documentation

pqxx::syntax_error::syntax_error ( const PGSTD::string &  err,
int  pos = -1 
)
inlineexplicit
pqxx::syntax_error::syntax_error ( const PGSTD::string &  err,
const PGSTD::string &  Q,
int  pos = -1 
)
inline

Member Function Documentation

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

The query whose execution triggered the exception.

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: