libpqxx
The C++ client library for PostgreSQL
connection-errorhandler.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_CONNECTION_ERRORHANDLER_HXX
2 #define PQXX_INTERNAL_GATES_CONNECTION_ERRORHANDLER_HXX
3 
5 
6 namespace pqxx
7 {
8 class connection;
9 class errorhandler;
10 } // namespace pqxx
11 
12 namespace pqxx::internal::gate
13 {
15 {
16  friend class pqxx::errorhandler;
17 
18  explicit constexpr connection_errorhandler(reference x) noexcept : super(x)
19  {}
20 
21  void register_errorhandler(errorhandler *h)
22  {
23  home().register_errorhandler(h);
24  }
25  void unregister_errorhandler(errorhandler *h)
26  {
27  home().unregister_errorhandler(h);
28  }
29 };
30 } // namespace pqxx::internal::gate
31 #endif
Connection to a database.
Definition: connection.hxx:273
Definition: errorhandler.hxx:46
Base class for call gates.
Definition: callgate.hxx:55
Definition: connection-errorhandler.hxx:15
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
Definition: connection.hxx:94
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26