libpqxx
The C++ client library for PostgreSQL
 
Loading...
Searching...
No Matches
connection-errorhandler.hxx
1#include <pqxx/internal/callgate.hxx>
2
3namespace pqxx
4{
5class connection;
6class errorhandler;
7} // namespace pqxx
8
9namespace pqxx::internal::gate
10{
11class PQXX_PRIVATE connection_errorhandler : callgate<connection>
12{
13 friend class pqxx::errorhandler;
14
15 connection_errorhandler(reference x) : super(x) {}
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 errorhandler.hxx:46
reference home() const noexcept
Definition callgate.hxx:65
connection & reference
Definition callgate.hxx:60
callgate< connection > super
Definition callgate.hxx:58
The home of all libpqxx classes, functions, templates, etc.
Definition array.cxx:27