MySQL 8.0.30
Source Code Documentation
my_error.cc File Reference
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include "m_ctype.h"
#include "m_string.h"
#include "my_base.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_loglevel.h"
#include "my_sys.h"
#include "my_thread_local.h"
#include "mysql/service_mysql_alloc.h"
#include "mysys/my_handler_errors.h"
#include "mysys/mysys_priv.h"
#include "mysys_err.h"
#include "strings/mb_wc.h"
#include "template_utils.h"

Classes

struct  my_err_head
 

Macros

#define ERRMSGSIZE   (512)
 

Functions

char * my_strerror (char *buf, size_t len, int nr)
 Get a string describing a system or handler error. More...
 
const char * my_get_err_msg (int nr)
 Get an error format string from one of the my_error_register()ed sets. More...
 
void my_error (int nr, myf MyFlags,...)
 Fill in and print a previously registered error message. More...
 
void my_printf_error (uint error, const char *format, myf MyFlags,...)
 Print an error message. More...
 
void my_printv_error (uint error, const char *format, myf MyFlags, va_list ap)
 Print an error message. More...
 
void my_message (uint error, const char *str, myf MyFlags)
 Print an error message. More...
 
int my_error_register (const char *(*get_errmsg)(int), int first, int last)
 Register error messages for use with my_error(). More...
 
bool my_error_unregister (int first, int last)
 Unregister formerly registered error messages. More...
 
void my_error_unregister_all (void)
 Unregister all formerly registered error messages. More...
 
void my_message_local_stderr (enum loglevel ll, uint ecode, va_list args)
 Issue a message locally (i.e. More...
 
void my_message_local (enum loglevel ll, uint ecode,...)
 Issue a message locally (i.e. More...
 

Variables

static struct my_err_head my_errmsgs_globerrs
 
static struct my_err_headmy_errmsgs_list = &my_errmsgs_globerrs
 

Macro Definition Documentation

◆ ERRMSGSIZE

#define ERRMSGSIZE   (512)

Function Documentation

◆ my_error_unregister_all()

void my_error_unregister_all ( void  )

Unregister all formerly registered error messages.

This function unregisters all error numbers that previously have been previously registered by my_error_register(). All headers are removed from the list; the messages themselves are not released here as they may be static.

Variable Documentation

◆ my_errmsgs_globerrs

struct my_err_head my_errmsgs_globerrs
static
Initial value:
const char * get_global_errmsg(int nr)
Definition: errors.cc:175
#define EE_ERROR_LAST
Definition: mysys_err.h:136
#define EE_ERROR_FIRST
Definition: mysys_err.h:44

◆ my_errmsgs_list

struct my_err_head* my_errmsgs_list = &my_errmsgs_globerrs
static