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"
23namespace pqxx::internal::gate
48 [[deprecated(
"Use a notice handler instead.")]]
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; }
errorhandler(connection &)
Definition errorhandler.cxx:22
virtual bool operator()(char const msg[]) noexcept=0
Definition errorhandler-connection.hxx:6
virtual bool operator()(char const[]) noexcept override
End a code block started by "ignore-deprecated-pre.hxx".
Definition errorhandler.hxx:85
quiet_errorhandler(connection &cx)
Suppress error notices.
Definition errorhandler.hxx:79
The home of all libpqxx classes, functions, templates, etc.
Definition array.cxx:27