00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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 ();
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"