Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

except.hxx

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  *   FILE
00004  *      pqxx/except.hxx
00005  *
00006  *   DESCRIPTION
00007  *      definition of libpqxx exception classes
00008  *   pqxx::sql_error, pqxx::broken_connection, pqxx::in_doubt_error, ...
00009  *   DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/except instead.
00010  *
00011  * Copyright (c) 2003-2005, Jeroen T. Vermeulen <jtv@xs4all.nl>
00012  *
00013  * See COPYING for copyright license.  If you did not receive a file called
00014  * COPYING with this source code, please notify the distributor of this mistake,
00015  * or contact the author.
00016  *
00017  *-------------------------------------------------------------------------
00018  */
00019 #include "pqxx/libcompiler.h"
00020 
00021 #include <stdexcept>
00022 
00023 #include "pqxx/util"
00024 
00025 
00026 namespace pqxx
00027 {
00028 
00033 
00035 class PQXX_LIBEXPORT broken_connection : public PGSTD::runtime_error
00036 {
00037 public:
00038   broken_connection();
00039   explicit broken_connection(const PGSTD::string &);
00040 };
00041 
00042 
00044 
00045 class PQXX_LIBEXPORT sql_error : public PGSTD::runtime_error
00046 {
00047   PGSTD::string m_Q;
00048 
00049 public:
00050   sql_error();
00051   explicit sql_error(const PGSTD::string &);
00052   sql_error(const PGSTD::string &, const PGSTD::string &Q);
00053   virtual ~sql_error() throw ();
00054 
00056   const PGSTD::string &query() const throw ();                          //[t56]
00057 };
00058 
00059 
00061 
00067 class PQXX_LIBEXPORT in_doubt_error : public PGSTD::runtime_error
00068 {
00069 public:
00070   explicit in_doubt_error(const PGSTD::string &);
00071 };
00072 
00073 
00075 class PQXX_LIBEXPORT internal_error : public PGSTD::logic_error
00076 {
00077 public:
00078   explicit internal_error(const PGSTD::string &);
00079 };
00080 
00082 
00083 }
00084 

Generated on Mon Oct 3 20:28:58 2005 for libpqxx by  doxygen 1.4.2