MySQL 9.1.0
Source Code Documentation
JsonSerializationErrorHandler Class Referenceabstract

Error handler for the functions that serialize a JSON value in the JSON binary storage format. More...

#include <json_error_handler.h>

Inheritance diagram for JsonSerializationErrorHandler:
[legend]

Public Member Functions

virtual ~JsonSerializationErrorHandler ()=default
 
virtual void KeyTooBig () const =0
 Called when a JSON object contains a member with a name that is longer than supported by the JSON binary format. More...
 
virtual void ValueTooBig () const =0
 Called when a JSON document is too big to be stored in the JSON binary format. More...
 
virtual void TooDeep () const =0
 Called when a JSON document has more nesting levels than supported. More...
 
virtual void InvalidJson () const =0
 Called when an invalid JSON value is encountered. More...
 
virtual void InternalError (const char *message) const =0
 Called when an internal error occurs. More...
 
virtual bool CheckStack () const =0
 Check if the stack is about to be exhausted, and report the error. More...
 

Detailed Description

Error handler for the functions that serialize a JSON value in the JSON binary storage format.

The member functions are called when an error occurs, and they should report the error the way the caller has specified. When called from the server, my_error() should be called to signal the error. The subclass JsonSerializationDefaultErrorHandler, which calls my_error(), should be used when called from server code.

Constructor & Destructor Documentation

◆ ~JsonSerializationErrorHandler()

virtual JsonSerializationErrorHandler::~JsonSerializationErrorHandler ( )
virtualdefault

Member Function Documentation

◆ CheckStack()

virtual bool JsonSerializationErrorHandler::CheckStack ( ) const
pure virtual

Check if the stack is about to be exhausted, and report the error.

Returns
true if the stack is about to be exhausted, false otherwise.

Implemented in anonymous_namespace{json_client_library_main.cc}::CoutSerializationErrorHandler, Bulk_load::Json_serialization_error_handler, and JsonSerializationDefaultErrorHandler.

◆ InternalError()

virtual void JsonSerializationErrorHandler::InternalError ( const char *  message) const
pure virtual

◆ InvalidJson()

virtual void JsonSerializationErrorHandler::InvalidJson ( ) const
pure virtual

◆ KeyTooBig()

virtual void JsonSerializationErrorHandler::KeyTooBig ( ) const
pure virtual

Called when a JSON object contains a member with a name that is longer than supported by the JSON binary format.

Implemented in anonymous_namespace{json_client_library_main.cc}::CoutSerializationErrorHandler, Bulk_load::Json_serialization_error_handler, and JsonSerializationDefaultErrorHandler.

◆ TooDeep()

virtual void JsonSerializationErrorHandler::TooDeep ( ) const
pure virtual

◆ ValueTooBig()

virtual void JsonSerializationErrorHandler::ValueTooBig ( ) const
pure virtual

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