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;
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:33
Definition: connection.hxx:109
Connection to a database.
Definition: connection.hxx:233
Base class for error-handler callbacks.
Definition: errorhandler.hxx:54
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:81
virtual bool operator()(char const[]) noexcept override
Revert to previous handling of error notices.
Definition: errorhandler.hxx:87
quiet_errorhandler(connection &conn)
Suppress error notices.
Definition: errorhandler.hxx:84