MySQL 8.4.2
Source Code Documentation
|
Error handler for the functions that serialize a JSON value in the JSON binary storage format. More...
#include <json_error_handler.h>
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... | |
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.
|
virtualdefault |
|
pure virtual |
Check if the stack is about to be exhausted, and report the error.
Implemented in anonymous_namespace{json_client_library_main.cc}::CoutSerializationErrorHandler, and JsonSerializationDefaultErrorHandler.
|
pure virtual |
Called when an internal error occurs.
Implemented in anonymous_namespace{json_client_library_main.cc}::CoutSerializationErrorHandler, and JsonSerializationDefaultErrorHandler.
|
pure virtual |
Called when an invalid JSON value is encountered.
Implemented in anonymous_namespace{json_client_library_main.cc}::CoutSerializationErrorHandler, and JsonSerializationDefaultErrorHandler.
|
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, and JsonSerializationDefaultErrorHandler.
|
pure virtual |
Called when a JSON document has more nesting levels than supported.
Implemented in anonymous_namespace{json_client_library_main.cc}::CoutSerializationErrorHandler, and JsonSerializationDefaultErrorHandler.
|
pure virtual |
Called when a JSON document is too big to be stored in the JSON binary format.
Implemented in anonymous_namespace{json_client_library_main.cc}::CoutSerializationErrorHandler, and JsonSerializationDefaultErrorHandler.