libpqxx
The C++ client library for PostgreSQL
connection-errorhandler.hxx
1 #include <pqxx/internal/callgate.hxx>
2 
3 namespace pqxx
4 {
5 class connection;
6 class errorhandler;
7 } // namespace pqxx
8 
9 namespace pqxx::internal::gate
10 {
11 class PQXX_PRIVATE connection_errorhandler : callgate<connection>
12 {
13  friend class pqxx::errorhandler;
14 
16 
17  void register_errorhandler(errorhandler *h)
18  {
19  home().register_errorhandler(h);
20  }
21  void unregister_errorhandler(errorhandler *h)
22  {
23  home().unregister_errorhandler(h);
24  }
25 };
26 } // namespace pqxx::internal::gate
Definition: connection-errorhandler.hxx:11
Definition: connection.hxx:106
Base class for call gates.
Definition: callgate.hxx:54
Definition: errorhandler.hxx:45
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26
Connection to a database.
Definition: connection.hxx:278