13 #ifndef PQXX_H_ERRORHANDLER 14 #define PQXX_H_ERRORHANDLER 16 #if !defined(PQXX_HEADER_PRE) 17 # error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>." 20 #include "pqxx/types.hxx" 25 class errorhandler_connection;
65 virtual bool operator()(
char const msg[]) noexcept = 0;
74 friend class internal::gate::errorhandler_connection;
75 void unregister() noexcept;
87 virtual bool operator()(
char const[]) noexcept
override {
return false; }
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:26
virtual bool operator()(char const []) noexcept override
Revert to previous handling of error notices.
Definition: errorhandler.hxx:87
Connection to a database.
Definition: connection.hxx:184
quiet_errorhandler(connection &conn)
Suppress error notices.
Definition: errorhandler.hxx:84
An error handler that suppresses any previously registered error handlers.
Definition: errorhandler.hxx:80
Definition: connection.hxx:98
Base class for error-handler callbacks.
Definition: errorhandler.hxx:53