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