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;
64 virtual bool operator()(
char const msg[]) noexcept = 0;
73 friend class internal::gate::errorhandler_connection;
74 void unregister() noexcept;
84 virtual bool operator()(
char const[]) noexcept
override {
return false; }
92 #include "pqxx/internal/compiler-internal-post.hxx" An error handler that suppresses any previously registered error handlers.
Definition: errorhandler.hxx:79
Definition: connection.hxx:66
Base class for error-handler callbacks.
Definition: errorhandler.hxx:52
virtual bool operator()(char const []) noexcept override
Definition: errorhandler.hxx:84
Connection to a database.
Definition: connection.hxx:136
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:25
quiet_errorhandler(connection &conn)
Definition: errorhandler.hxx:82