libdballe
9.11
|
Report an PostgreSQL error. More...
#include <postgresql.h>
Public Member Functions | |
error_postgresql (PGconn *db, const std::string &msg) | |
error_postgresql (PGresult *db, const std::string &msg) | |
error_postgresql (const std::string &dbmsg, const std::string &msg) | |
const char * | what () const noexcept override |
![]() | |
wreport::ErrorCode | code () const noexcept override |
Static Public Member Functions | |
static void | throwf (PGconn *db, const char *fmt,...) WREPORT_THROWF_ATTRS(2 |
static void static void | throwf (PGresult *db, const char *fmt,...) WREPORT_THROWF_ATTRS(2 |
![]() | |
static const char * | strerror (wreport::ErrorCode code) |
String description for an error code. More... | |
![]() | |
static const char * | strerror (ErrorCode code) |
Public Attributes | |
std::string | msg |
Report an PostgreSQL error.