13 #ifndef PQXX_H_ERRORHANDLER
14 #define PQXX_H_ERRORHANDLER
16 #include "pqxx/compiler-public.hxx"
17 #include "pqxx/internal/compiler-internal-pre.hxx"
19 #include "pqxx/types.hxx"
24 class errorhandler_connection;
73 friend class internal::gate::errorhandler_connection;
74 void unregister() noexcept;
84 virtual bool operator()(
char const[]) noexcept
override {
return false; }
92 #include "pqxx/internal/compiler-internal-post.hxx"
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:26
Definition: connection.hxx:95
PQXX_DECLARE_ENUM_CONVERSION(pqxx::internal::encoding_group)
encoding_group enc_group(int libpq_enc_id)
Definition: encodings.cxx:571
virtual bool operator()(char const msg[]) noexcept=0
Internal items for libpqxx' own use. Do not use these yourself.
Definition: composite.hxx:74
Invalid argument passed to libpqxx, similar to std::invalid_argument.
Definition: except.hxx:172
Connection to a database.
Definition: connection.hxx:164
virtual bool operator()(char const[]) noexcept override
Definition: errorhandler.hxx:84
virtual ~errorhandler()
Definition: errorhandler.cxx:26
Error in usage of libpqxx library, similar to std::logic_error.
Definition: except.hxx:165
errorhandler & operator=(errorhandler const &)=delete
PQXX_PURE glyph_scanner_func * get_glyph_scanner(encoding_group enc)
Definition: encodings.cxx:670
PQXX_PURE char const * name_encoding(int encoding_id)
Definition: encodings.cxx:565
quiet_errorhandler(connection &conn)
Definition: errorhandler.hxx:82
constexpr F * for_encoding(encoding_group enc)
Look up instantiation T<enc>::call at runtime.
Definition: encodings.cxx:640
PQXX_PURE std::size_t find_with_encoding(encoding_group enc, std::string_view haystack, char needle, std::size_t start)
Definition: encodings.cxx:713
errorhandler(errorhandler const &)=delete
Base class for error-handler callbacks.
Definition: errorhandler.hxx:53
An error handler that suppresses any previously registered error handlers.
Definition: errorhandler.hxx:80