13 #ifndef PQXX_H_ERRORHANDLER
14 #define PQXX_H_ERRORHANDLER
16 #include "pqxx/types.hxx"
21 class errorhandler_connection;
70 friend class internal::gate::errorhandler_connection;
71 void unregister() noexcept;
83 virtual bool operator()(
char const[]) noexcept
override {
return false; }
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:23
Definition: connection.hxx:95
Connection to a database.
Definition: connection.hxx:181
Base class for error-handler callbacks.
Definition: errorhandler.hxx:50
virtual bool operator()(char const msg[]) noexcept=0
errorhandler & operator=(errorhandler const &)=delete
errorhandler(errorhandler const &)=delete
An error handler that suppresses any previously registered error handlers.
Definition: errorhandler.hxx:77
virtual bool operator()(char const[]) noexcept override
Revert to previous handling of error notices.
Definition: errorhandler.hxx:83
quiet_errorhandler(connection &conn)
Suppress error notices.
Definition: errorhandler.hxx:80