libpqxx  7.7.0
pqxx::quiet_errorhandler Class Reference

An error handler that suppresses any previously registered error handlers. More...

#include <errorhandler.hxx>

Inheritance diagram for pqxx::quiet_errorhandler:

Public Member Functions

 quiet_errorhandler (connection &conn)
 Suppress error notices. More...
 
virtual bool operator() (char const []) noexcept override
 Revert to previous handling of error notices. More...
 
- Public Member Functions inherited from pqxx::errorhandler
 errorhandler (connection &)
 
virtual ~errorhandler ()
 
 errorhandler ()=delete
 
 errorhandler (errorhandler const &)=delete
 
errorhandleroperator= (errorhandler const &)=delete
 

Detailed Description

An error handler that suppresses any previously registered error handlers.

Constructor & Destructor Documentation

◆ quiet_errorhandler()

pqxx::quiet_errorhandler::quiet_errorhandler ( connection conn)

Suppress error notices.

Member Function Documentation

◆ operator()()

virtual bool pqxx::quiet_errorhandler::operator() ( char  const[])
overridevirtualnoexcept

Revert to previous handling of error notices.

Implements pqxx::errorhandler.


The documentation for this class was generated from the following file: