MySQL 8.3.0
Source Code Documentation
services::Condition_handler Class Referenceabstract

This class may inherited and passed to parse() in order to handle conditions raised by the server. More...

#include <services.h>

Inheritance diagram for services::Condition_handler:
[legend]

Public Member Functions

virtual bool handle (int sql_errno, const char *sqlstate, const char *message)=0
 This function will be called by the server via this API before raising a condition. More...
 
virtual ~Condition_handler ()=0
 

Detailed Description

This class may inherited and passed to parse() in order to handle conditions raised by the server.

Constructor & Destructor Documentation

◆ ~Condition_handler()

services::Condition_handler::~Condition_handler ( )
pure virtualdefault

Member Function Documentation

◆ handle()

virtual bool services::Condition_handler::handle ( int  sql_errno,
const char *  sqlstate,
const char *  message 
)
pure virtual

This function will be called by the server via this API before raising a condition.

The Condition_handler subclass may then decide to handle the condition by returning true, in which case the server does not raise it.

Parameters
sql_errnoThe condition number.
sqlstateThe SQLSTATE, allocated in the server.
messageThe condition's message, allocated in the server.
Return values
trueThe condition is handled entirely by this object.
falseThe condition is not handled.

Implemented in Parse_error_recorder.


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