MySQL 8.0.40
Source Code Documentation
Parse_error_recorder Class Reference

A Condition_handler that silences and records parse errors. More...

Inheritance diagram for Parse_error_recorder:
[legend]

Public Member Functions

bool handle (int sql_errno, const char *, const char *message) override
 Handle a condition. More...
 
string first_parse_error_message ()
 
- Public Member Functions inherited from services::Condition_handler
virtual ~Condition_handler ()=0
 

Private Attributes

string m_message
 

Detailed Description

A Condition_handler that silences and records parse errors.

Member Function Documentation

◆ first_parse_error_message()

string Parse_error_recorder::first_parse_error_message ( )
inline

◆ handle()

bool Parse_error_recorder::handle ( int  sql_errno,
const char *  ,
const char *  message 
)
inlineoverridevirtual

Handle a condition.

Parameters
sql_errnoThe sql error number.
messageThe sql error text.
Return values
trueIf the error number is a parser error, we claim we handle the error.
falseWe don't handle the error.

Implements services::Condition_handler.

Member Data Documentation

◆ m_message

string Parse_error_recorder::m_message
private

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