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-2006, 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/compiler-public.hxx"
00020 #include "pqxx/compiler-internal-pre.hxx"
00021 
00022 #include <stdexcept>
00023 
00024 #include "pqxx/util"
00025 
00026 
00027 namespace pqxx
00028 {
00029 
00034 
00036 class PQXX_LIBEXPORT broken_connection : public PGSTD::runtime_error
00037 {
00038 public:
00039   broken_connection();
00040   explicit broken_connection(const PGSTD::string &);
00041 };
00042 
00043 
00045 
00046 class PQXX_LIBEXPORT sql_error : public PGSTD::runtime_error
00047 {
00048   PGSTD::string m_Q;
00049 
00050 public:
00051   sql_error();
00052   explicit sql_error(const PGSTD::string &);
00053   sql_error(const PGSTD::string &, const PGSTD::string &Q);
00054   virtual ~sql_error() throw ();
00055 
00057   const PGSTD::string &query() const throw ();                          //[t56]
00058 };
00059 
00060 
00062 
00068 class PQXX_LIBEXPORT in_doubt_error : public PGSTD::runtime_error
00069 {
00070 public:
00071   explicit in_doubt_error(const PGSTD::string &);
00072 };
00073 
00074 
00076 class PQXX_LIBEXPORT internal_error : public PGSTD::logic_error
00077 {
00078 public:
00079   explicit internal_error(const PGSTD::string &);
00080 };
00081 
00083 
00084 }
00085 
00086 #include "pqxx/compiler-internal-post.hxx"

Generated on Sun Jun 18 14:51:00 2006 for libpqxx by  doxygen 1.4.6