blob: 9c62704dbefbbe86f0902d1cb802d8647d4211d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <pqxx/internal/callgate.hxx>
namespace pqxx
{
class connection_base;
class errorhandler;
namespace internal
{
namespace gate
{
class PQXX_PRIVATE connection_errorhandler : callgate<connection_base>
{
friend class pqxx::errorhandler;
connection_errorhandler(reference x) : super(x) {}
void register_errorhandler(errorhandler *h)
{ home().register_errorhandler(h); }
void unregister_errorhandler(errorhandler *h)
{ home().unregister_errorhandler(h); }
};
} // namespace pqxx::internal::gate
} // namespace pqxx::internal
} // namespace pqxx
|