MySQL 8.0.30
Source Code Documentation
mysqlrouter::MysqlError Class Reference

#include <mysql_session.h>

Public Member Functions

 MysqlError (unsigned int code, std::string message, std::string sql_state)
 
 operator bool ()
 
std::string message () const
 
std::string sql_state () const
 
unsigned int value () const
 

Private Attributes

unsigned int code_
 
std::string message_
 
std::string sql_state_
 

Constructor & Destructor Documentation

◆ MysqlError()

mysqlrouter::MysqlError::MysqlError ( unsigned int  code,
std::string  message,
std::string  sql_state 
)
inline

Member Function Documentation

◆ message()

std::string mysqlrouter::MysqlError::message ( ) const
inline

◆ operator bool()

mysqlrouter::MysqlError::operator bool ( )
inline

◆ sql_state()

std::string mysqlrouter::MysqlError::sql_state ( ) const
inline

◆ value()

unsigned int mysqlrouter::MysqlError::value ( ) const
inline

Member Data Documentation

◆ code_

unsigned int mysqlrouter::MysqlError::code_
private

◆ message_

std::string mysqlrouter::MysqlError::message_
private

◆ sql_state_

std::string mysqlrouter::MysqlError::sql_state_
private

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