libdballe 9.6
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dballe::sql::error_mysql Struct Reference

Report a MySQL error. More...

#include <mysql.h>

Inheritance diagram for dballe::sql::error_mysql:
dballe::error_db dballe::error wreport::error

Public Member Functions

 error_mysql (MYSQL *db, const std::string &msg)
 
 error_mysql (const std::string &dbmsg, const std::string &msg)
 
const char * what () const noexcept override
 
- Public Member Functions inherited from dballe::error_db
wreport::ErrorCode code () const noexcept override
 
virtual ErrorCode code () const noexcept=0
 
virtual const char * what () const noexcept=0
 

Static Public Member Functions

static void throwf (MYSQL *db, const char *fmt,...) WREPORT_THROWF_ATTRS(2
 
- Static Public Member Functions inherited from dballe::error
static const char * strerror (wreport::ErrorCode code)
 String description for an error code.
 
- Static Public Member Functions inherited from wreport::error
static const char * strerror (ErrorCode code)
 

Public Attributes

std::string msg
 

Detailed Description

Report a MySQL error.

Member Function Documentation

◆ what()

const char * dballe::sql::error_mysql::what ( ) const
inlineoverridevirtualnoexcept

Implements wreport::error.


The documentation for this struct was generated from the following file: