MySQL 9.0.0
Source Code Documentation
mysqlrouter::MysqlError Class Reference

#include <mysql_session.h>

Public Member Functions

 MysqlError ()=default
 
 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_ {0}
 
std::string message_
 
std::string sql_state_
 

Constructor & Destructor Documentation

◆ MysqlError() [1/2]

mysqlrouter::MysqlError::MysqlError ( )
default

◆ MysqlError() [2/2]

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_ {0}
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: