MySQL 9.1.0
Source Code Documentation
JsonSchemaDefaultErrorHandler Class Referencefinal

The default error handler to be used when parsing JSON schemas and validating JSON objects using a JSON schema inside the MySQL server. More...

#include <json_error_handler.h>

Inheritance diagram for JsonSchemaDefaultErrorHandler:
[legend]

Public Member Functions

 JsonSchemaDefaultErrorHandler (const char *function_name)
 
void InvalidJsonText (size_t arg_no, const char *wrong_string, size_t offset) const override
 Called when an invalid JSON value is encountered. More...
 
void InvalidJsonType () const override
 Called if the provided JSON is not a JSON object. More...
 
void HandleStdExceptions () const override
 Called if a std exception is thrown. More...
 
void NotSupported () const override
 Called if a schema reference is encountered in the JSON document as MySQL does not support such constructs. More...
 
- Public Member Functions inherited from JsonSchemaErrorHandler
virtual ~JsonSchemaErrorHandler ()=default
 

Private Attributes

const char * m_calling_function_name
 Used for error reporting and holds the name of the function. More...
 

Detailed Description

The default error handler to be used when parsing JSON schemas and validating JSON objects using a JSON schema inside the MySQL server.

Constructor & Destructor Documentation

◆ JsonSchemaDefaultErrorHandler()

JsonSchemaDefaultErrorHandler::JsonSchemaDefaultErrorHandler ( const char *  function_name)
inlineexplicit

Member Function Documentation

◆ HandleStdExceptions()

void JsonSchemaDefaultErrorHandler::HandleStdExceptions ( ) const
overridevirtual

Called if a std exception is thrown.

Implements JsonSchemaErrorHandler.

◆ InvalidJsonText()

void JsonSchemaDefaultErrorHandler::InvalidJsonText ( size_t  arg_no,
const char *  wrong_string,
size_t  offset 
) const
overridevirtual

Called when an invalid JSON value is encountered.

Implements JsonSchemaErrorHandler.

◆ InvalidJsonType()

void JsonSchemaDefaultErrorHandler::InvalidJsonType ( ) const
overridevirtual

Called if the provided JSON is not a JSON object.

Implements JsonSchemaErrorHandler.

◆ NotSupported()

void JsonSchemaDefaultErrorHandler::NotSupported ( ) const
overridevirtual

Called if a schema reference is encountered in the JSON document as MySQL does not support such constructs.

Implements JsonSchemaErrorHandler.

Member Data Documentation

◆ m_calling_function_name

const char* JsonSchemaDefaultErrorHandler::m_calling_function_name
private

Used for error reporting and holds the name of the function.


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