YAPOG  0.0.1
Yet Another Pokemon Online Game
pgs::pg_excpt Class Reference

sql exception class More...

#include <pgstream.hpp>

Collaboration diagram for pgs::pg_excpt:

List of all members.

Public Member Functions

 pg_excpt ()
 pg_excpt (const char *e_query, const char *msg, std::string code="")
virtual ~pg_excpt ()
std::string query () const
std::string errmsg () const
std::string errcode () const
std::string full_error_txt () const

Static Public Member Functions

static pg_excpt mk_excpt (PGresult *r, const char *query=NULL)

Private Attributes

std::string m_query
std::string m_err_msg
std::string m_err_code

Detailed Description

sql exception class

Definition at line 29 of file pgstream.hpp.


Constructor & Destructor Documentation

pgs::pg_excpt::pg_excpt ( )
inline

Definition at line 32 of file pgstream.hpp.

Here is the caller graph for this function:

pgs::pg_excpt::pg_excpt ( const char *  e_query,
const char *  msg,
std::string  code = "" 
)
inline

Definition at line 33 of file pgstream.hpp.

virtual pgs::pg_excpt::~pg_excpt ( )
inlinevirtual

Definition at line 41 of file pgstream.hpp.


Member Function Documentation

std::string pgs::pg_excpt::errcode ( ) const
inline

Definition at line 44 of file pgstream.hpp.

std::string pgs::pg_excpt::errmsg ( ) const
inline

Definition at line 43 of file pgstream.hpp.

Here is the caller graph for this function:

std::string pgs::pg_excpt::full_error_txt ( ) const

Definition at line 1088 of file pgstream.cpp.

Here is the caller graph for this function:

pg_excpt pgs::pg_excpt::mk_excpt ( PGresult *  r,
const char *  query = NULL 
)
static

Definition at line 1075 of file pgstream.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string pgs::pg_excpt::query ( ) const
inline

Definition at line 42 of file pgstream.hpp.


Member Data Documentation

std::string pgs::pg_excpt::m_err_code
private

Definition at line 51 of file pgstream.hpp.

std::string pgs::pg_excpt::m_err_msg
private

Definition at line 50 of file pgstream.hpp.

std::string pgs::pg_excpt::m_query
private

Definition at line 49 of file pgstream.hpp.


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