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"
virtual bool operator()(char const[]) noexcept override
Definition: errorhandler.hxx:84
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:26
virtual bool operator()(char const msg[]) noexcept=0
errorhandler(errorhandler const &)=delete
Definition: connection.hxx:67
std::string to_string(field const &value)
Convert a field to a string.
Definition: result.cxx:498
PQXX_DECLARE_ENUM_CONVERSION(pqxx::internal::encoding_group)
encoding_group enc_group(int libpq_enc_id)
Definition: encodings.cxx:585
Private namespace for libpqxx's internal use; do not access.
Definition: connection.hxx:61
An error handler that suppresses any previously registered error handlers.
Definition: errorhandler.hxx:80
std::string::size_type find_with_encoding(encoding_group enc, std::string_view haystack, char needle, std::string::size_type start)
Definition: encodings.cxx:728
virtual ~errorhandler()
Definition: errorhandler.cxx:26
Invalid argument passed to libpqxx, similar to std::invalid_argument.
Definition: except.hxx:173
Connection to a database.
Definition: connection.hxx:137
errorhandler & operator=(errorhandler const &)=delete
constexpr F * for_encoding(encoding_group enc)
Look up instantiation T<enc>::call at runtime.
Definition: encodings.cxx:654
Error in usage of libpqxx library, similar to std::logic_error.
Definition: except.hxx:166
glyph_scanner_func * get_glyph_scanner(encoding_group enc)
Definition: encodings.cxx:684
char const * name_encoding(int encoding_id)
Definition: encodings.cxx:579
Base class for error-handler callbacks.
Definition: errorhandler.hxx:53
quiet_errorhandler(connection &conn)
Definition: errorhandler.hxx:82