MySQL Connector/C++ 9.1.0
MySQL connector library for C and C++ applications
Public Types | Public Member Functions | List of all members
Warning Class Reference

An error, warning or other diagnostic information reported by server when executing queries or statements. More...

Public Types

enum  Level { LEVEL_ERROR , LEVEL_WARNING , LEVEL_INFO }
 Type of diagnostic information. More...
 

Public Member Functions

Level getLevel () const
 Return level of the diagnostic info stored in this object.
 
uint16_t getCode () const
 Return error/warning code reported by server.
 
const stringgetMessage () const
 Return diagnostic message reported by server.
 

Detailed Description

An error, warning or other diagnostic information reported by server when executing queries or statements.

The information can be printed to output stream using << operator.

Note
Normally, errors reported by server are not represented by Warning instances but instead they are thrown as instances of mysqlx::Error.

Member Enumeration Documentation

◆ Level

enum Level

Type of diagnostic information.

Enumerator
LEVEL_ERROR 

Error

LEVEL_WARNING 

Warning

LEVEL_INFO 

Other information.


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