MySQL 9.1.0
Source Code Documentation
error_names.h File Reference
#include <string>

Go to the source code of this file.

Classes

struct  st_error
 Error structure. More...
 

Functions

int get_errcode_from_name (std::string error_name)
 Get an error code from an error name string. More...
 
const char * get_errname_from_code (int error_code)
 Get an error name from an error code. More...
 

Function Documentation

◆ get_errcode_from_name()

int get_errcode_from_name ( std::string  error_name)

Get an error code from an error name string.

Parameters
error_nameError name string
Return values
-1if error name is unknown, error code otherwise.

◆ get_errname_from_code()

const char * get_errname_from_code ( int  error_code)

Get an error name from an error code.

Parameters
error_codeError code
Return values
<Unknown>keyword if error code is unknown, error name otherwise.