MySQL 8.4.2
Source Code Documentation
JsonCoercionWarnHandler Class Reference

Callback function called when a coercion error occurs. More...

#include <json_error_handler.h>

Public Member Functions

 JsonCoercionWarnHandler (const char *msgnam)
 
void operator() (const char *target_type, int error_code) const
 

Private Attributes

const char * m_msgnam
 The name of the field/expression being coerced to be used in error message if conversion failed. More...
 

Detailed Description

Callback function called when a coercion error occurs.

It reports the error as WARNING

Constructor & Destructor Documentation

◆ JsonCoercionWarnHandler()

JsonCoercionWarnHandler::JsonCoercionWarnHandler ( const char *  msgnam)
inlineexplicit

Member Function Documentation

◆ operator()()

void JsonCoercionWarnHandler::operator() ( const char *  target_type,
int  error_code 
) const

Member Data Documentation

◆ m_msgnam

const char* JsonCoercionWarnHandler::m_msgnam
private

The name of the field/expression being coerced to be used in error message if conversion failed.


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