MySQL 9.1.0
Source Code Documentation
JsonSchemaErrorHandler Class Referenceabstract

Error handler to be used when parsing JSON schemas and validating JSON objects using a JSON schema. More...

#include <json_error_handler.h>

Inheritance diagram for JsonSchemaErrorHandler:
[legend]

Public Member Functions

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

Detailed Description

Error handler to be used when parsing JSON schemas and validating JSON objects using a JSON schema.

Constructor & Destructor Documentation

◆ ~JsonSchemaErrorHandler()

virtual JsonSchemaErrorHandler::~JsonSchemaErrorHandler ( )
virtualdefault

Member Function Documentation

◆ HandleStdExceptions()

virtual void JsonSchemaErrorHandler::HandleStdExceptions ( ) const
pure virtual

◆ InvalidJsonText()

virtual void JsonSchemaErrorHandler::InvalidJsonText ( size_t  arg_no,
const char *  wrong_string,
size_t  offset 
) const
pure virtual

◆ InvalidJsonType()

virtual void JsonSchemaErrorHandler::InvalidJsonType ( ) const
pure virtual

◆ NotSupported()

virtual void JsonSchemaErrorHandler::NotSupported ( ) const
pure virtual

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

Implemented in anonymous_namespace{json_client_library_main.cc}::CoutJsonSchemaDefaultErrorHandler, and JsonSchemaDefaultErrorHandler.


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