libpqxx  7.2.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)
 
virtual bool operator() (char const []) noexcept override
 
- 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)

Member Function Documentation

◆ operator()()

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

Define in subclass: receive an error or warning message from the database.

Returns
Whether the same error message should also be passed to the remaining, older errorhandlers.

Implements pqxx::errorhandler.


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