libpqxx
pqxx::syntax_error Class Reference

#include <except.hxx>

Inheritance diagram for pqxx::syntax_error:

Public Member Functions

 syntax_error (const std::string &err, const std::string &Q="", const char sqlstate[]=nullptr, int pos=-1)
 
- Public Member Functions inherited from pqxx::sql_error
 sql_error (const std::string &msg="", const std::string &Q="", const char sqlstate[]=nullptr)
 
virtual ~sql_error () noexcept
 
PQXX_PURE const std::string & query () const noexcept
 The query whose execution triggered the exception. More...
 
PQXX_PURE const std::string & sqlstate () const noexcept
 
- Public Member Functions inherited from pqxx::failure
 failure (const std::string &)
 
- Public Member Functions inherited from pqxx::pqxx_exception
virtual ~pqxx_exception () noexcept=0
 Support run-time polymorphism, and keep this class abstract. More...
 

Public Attributes

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

Constructor & Destructor Documentation

◆ syntax_error()

pqxx::syntax_error::syntax_error ( const std::string &  err,
const std::string &  Q = "",
const char  sqlstate[] = nullptr,
int  pos = -1 
)
explicit

Member Data Documentation

◆ error_position

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: