MySQL 8.4.2
Source Code Documentation
|
Error handler to be used when serializing JSON binary values in server code. More...
#include <json_error_handler.h>
Public Member Functions | |
JsonSerializationDefaultErrorHandler (const THD *thd) | |
void | KeyTooBig () const override |
Called when a JSON object contains a member with a name that is longer than supported by the JSON binary format. More... | |
void | ValueTooBig () const override |
Called when a JSON document is too big to be stored in the JSON binary format. More... | |
void | TooDeep () const override |
Called when a JSON document has more nesting levels than supported. More... | |
void | InvalidJson () const override |
Called when an invalid JSON value is encountered. More... | |
void | InternalError (const char *message) const override |
Called when an internal error occurs. More... | |
bool | CheckStack () const override |
Check if the stack is about to be exhausted, and report the error. More... | |
Public Member Functions inherited from JsonSerializationErrorHandler | |
virtual | ~JsonSerializationErrorHandler ()=default |
Private Attributes | |
const THD * | m_thd |
Error handler to be used when serializing JSON binary values in server code.
Uses my_error(), so it cannot be used in code outside of the server.
|
inlineexplicit |
|
overridevirtual |
Check if the stack is about to be exhausted, and report the error.
Implements JsonSerializationErrorHandler.
|
overridevirtual |
Called when an internal error occurs.
Implements JsonSerializationErrorHandler.
|
overridevirtual |
Called when an invalid JSON value is encountered.
Implements JsonSerializationErrorHandler.
|
overridevirtual |
Called when a JSON object contains a member with a name that is longer than supported by the JSON binary format.
Implements JsonSerializationErrorHandler.
|
overridevirtual |
Called when a JSON document has more nesting levels than supported.
Implements JsonSerializationErrorHandler.
|
overridevirtual |
Called when a JSON document is too big to be stored in the JSON binary format.
Implements JsonSerializationErrorHandler.
|
private |