13 #ifndef PQXX_H_ERRORHANDLER
14 #define PQXX_H_ERRORHANDLER
16 #if !defined(PQXX_HEADER_PRE)
17 # error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>."
20 #include "pqxx/types.hxx"
25 class errorhandler_connection;
48 [[deprecated(
"Use a notice handler instead.")]]
58 virtual bool operator()(
char const msg[]) noexcept = 0;
68 void unregister() noexcept;
76 #include "pqxx/internal/ignore-deprecated-pre.hxx"
78 [[deprecated(
"Use notice handlers instead.")]]
82 #include "pqxx/internal/ignore-deprecated-post.hxx"
85 virtual bool operator()(
char const[]) noexcept
override {
return false; }
Definition: errorhandler-connection.hxx:5
quiet_errorhandler(connection &cx)
Suppress error notices.
Definition: errorhandler.hxx:79
Definition: connection.hxx:106
Definition: errorhandler.hxx:45
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26
Connection to a database.
Definition: connection.hxx:278
Definition: errorhandler.hxx:73
virtual bool operator()(char const []) noexcept override
End a code block started by "ignore-deprecated-pre.hxx".
Definition: errorhandler.hxx:85