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