13 #ifndef PQXX_H_ERRORHANDLER 14 #define PQXX_H_ERRORHANDLER 16 #include "pqxx/compiler-public.hxx" 17 #include "pqxx/compiler-internal-pre.hxx" 19 #include "pqxx/types.hxx" 28 class errorhandler_connection_base;
65 virtual bool operator()(
const char msg[]) noexcept =0;
70 friend class internal::gate::errorhandler_connection_base;
71 void unregister() noexcept;
85 virtual bool operator()(
const char[]) noexcept
override {
return false; }
94 #include "pqxx/compiler-internal-post.hxx" An error handler that suppresses any previously registered error handlers.
Definition: errorhandler.hxx:80
connection_base abstract base class; represents a connection to a database.
Definition: connection_base.hxx:139
virtual bool operator()(const char[]) noexcept override
Define in subclass: receive an error or warning message from the database.
Definition: errorhandler.hxx:85
Base class for error-handler callbacks.
Definition: errorhandler.hxx:54
quiet_errorhandler(connection_base &conn)
Definition: errorhandler.hxx:83
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:25