MySQL  8.0.27
Source Code Documentation
MY_LOCALE_ERRMSGS Class Reference

#include <derror.h>

Public Member Functions

 MY_LOCALE_ERRMSGS (const char *lang_par)
 
const char * lookup (int mysql_errno)
 Return error message string for a given error number. More...
 
bool is_loaded () const
 Has the error message file been sucessfully loaded? More...
 
void destroy ()
 Deallocate error message strings. More...
 
bool read_texts ()
 Read the error message file and initialize strings. More...
 
const char * get_language () const
 What language is this error message set for? More...
 

Private Attributes

const char * language
 
const char ** errmsgs
 

Constructor & Destructor Documentation

◆ MY_LOCALE_ERRMSGS()

MY_LOCALE_ERRMSGS::MY_LOCALE_ERRMSGS ( const char *  lang_par)
inline

Member Function Documentation

◆ destroy()

void MY_LOCALE_ERRMSGS::destroy ( )

Deallocate error message strings.

◆ get_language()

const char* MY_LOCALE_ERRMSGS::get_language ( ) const
inline

What language is this error message set for?

◆ is_loaded()

bool MY_LOCALE_ERRMSGS::is_loaded ( ) const
inline

Has the error message file been sucessfully loaded?

◆ lookup()

const char * MY_LOCALE_ERRMSGS::lookup ( int  mysql_errno)

Return error message string for a given error number.

◆ read_texts()

bool MY_LOCALE_ERRMSGS::read_texts ( )

Read the error message file and initialize strings.

Read text from packed textfile in language-directory.

Return values
falseOn success
trueOn failure
Note
If we can't read messagefile then it's panic- we can't continue.

Member Data Documentation

◆ errmsgs

const char** MY_LOCALE_ERRMSGS::errmsgs
private

◆ language

const char* MY_LOCALE_ERRMSGS::language
private

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