connection-errorhandler.hxx 576 B

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