19 #ifndef PQXX_H_ERRORHANDLER
20 #define PQXX_H_ERRORHANDLER
22 #include "pqxx/compiler-public.hxx"
23 #include "pqxx/compiler-internal-pre.hxx"
30 class connection_base;
36 class errorhandler_connection_base;
58 public std::unary_function<const char[], bool>
69 virtual bool operator()(
const char msg[]) PQXX_NOEXCEPT =0;
74 friend class internal::gate::errorhandler_connection_base;
75 void unregister() PQXX_NOEXCEPT;
90 virtual bool operator()(
const char[]) PQXX_NOEXCEPT PQXX_OVERRIDE
100 #include "pqxx/compiler-internal-post.hxx"
connection_base abstract base class; represents a connection to a database.
Definition: connection_base.hxx:149
virtual bool operator()(const char[]) PQXX_NOEXCEPT PQXX_OVERRIDE
Define in subclass: receive an error or warning message from the database.
Definition: errorhandler.hxx:90
quiet_errorhandler(connection_base &conn)
Definition: errorhandler.hxx:88
Base class for error-handler callbacks.
Definition: errorhandler.hxx:57
An error handler that suppresses any previously registered error handlers.
Definition: errorhandler.hxx:85