13 #ifndef PQXX_H_ERRORHANDLER
14 #define PQXX_H_ERRORHANDLER
16 #include "pqxx/compiler-public.hxx"
17 #include "pqxx/internal/compiler-internal-pre.hxx"
19 #include "pqxx/types.hxx"
24 class errorhandler_connection;
73 friend class internal::gate::errorhandler_connection;
74 void unregister() noexcept;
86 virtual bool operator()(
char const[]) noexcept
override {
return false; }
92 #include "pqxx/internal/compiler-internal-post.hxx"
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:26
Definition: connection.hxx:95
Connection to a database.
Definition: connection.hxx:181
Base class for error-handler callbacks.
Definition: errorhandler.hxx:53
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:80
virtual bool operator()(char const[]) noexcept override
Revert to previous handling of error notices.
Definition: errorhandler.hxx:86
quiet_errorhandler(connection &conn)
Suppress error notices.
Definition: errorhandler.hxx:83