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 PGSTD::unary_function<const char[], bool>
69 virtual bool operator()(
const char msg[])
throw () =0;
74 friend class internal::gate::errorhandler_connection_base;
75 void unregister() throw ();
80 errorhandler &operator=(const errorhandler &);
90 virtual bool operator()(
const char[]) throw () {
return false; }
99 #include "pqxx/compiler-internal-post.hxx" Base class for error-handler callbacks.
Definition: errorhandler.hxx:57
virtual bool operator()(const char[])
Define in subclass: receive an error or warning message from the database.
Definition: errorhandler.hxx:90
An error handler that suppresses any previously registered error handlers.
Definition: errorhandler.hxx:85
The home of all libpqxx classes, functions, templates, etc.
Definition: basic_connection.hxx:35
connection_base abstract base class; represents a connection to a database.
Definition: connection_base.hxx:151
quiet_errorhandler(connection_base &conn)
Definition: errorhandler.hxx:88