MySQL 9.1.0
Source Code Documentation
Internal_error_handler_holder< Error_handler, Error_handler_arg > Class Template Reference

A simple holder for Internal_error_handler. More...

#include <thd_raii.h>

Public Member Functions

 Internal_error_handler_holder (THD *thd, bool activate, Error_handler_arg *arg)
 
 ~Internal_error_handler_holder ()
 

Private Attributes

THDm_thd
 
bool m_activate
 
Error_handler m_error_handler
 

Detailed Description

template<typename Error_handler, typename Error_handler_arg>
class Internal_error_handler_holder< Error_handler, Error_handler_arg >

A simple holder for Internal_error_handler.

The class utilizes RAII technique to not forget to pop the handler.

Template Parameters
Error_handlerInternal_error_handler to instantiate.
Error_handler_argType of the error handler ctor argument.

Constructor & Destructor Documentation

◆ Internal_error_handler_holder()

template<typename Error_handler , typename Error_handler_arg >
Internal_error_handler_holder< Error_handler, Error_handler_arg >::Internal_error_handler_holder ( THD thd,
bool  activate,
Error_handler_arg *  arg 
)
inline

◆ ~Internal_error_handler_holder()

template<typename Error_handler , typename Error_handler_arg >
Internal_error_handler_holder< Error_handler, Error_handler_arg >::~Internal_error_handler_holder ( )
inline

Member Data Documentation

◆ m_activate

template<typename Error_handler , typename Error_handler_arg >
bool Internal_error_handler_holder< Error_handler, Error_handler_arg >::m_activate
private

◆ m_error_handler

template<typename Error_handler , typename Error_handler_arg >
Error_handler Internal_error_handler_holder< Error_handler, Error_handler_arg >::m_error_handler
private

◆ m_thd

template<typename Error_handler , typename Error_handler_arg >
THD* Internal_error_handler_holder< Error_handler, Error_handler_arg >::m_thd
private

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