MySQL 9.1.0
Source Code Documentation
Bulk_load::Json_serialization_error_handler Class Referencefinal

#include <bulk_data_service.h>

Inheritance diagram for Bulk_load::Json_serialization_error_handler:
[legend]

Public Member Functions

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...
 
const char * c_str () const
 
std::string get_error () const
 
- Public Member Functions inherited from JsonSerializationErrorHandler
virtual ~JsonSerializationErrorHandler ()=default
 

Private Attributes

std::string m_error {}
 

Member Function Documentation

◆ c_str()

const char * Bulk_load::Json_serialization_error_handler::c_str ( ) const
inline

◆ CheckStack()

bool Bulk_load::Json_serialization_error_handler::CheckStack ( ) const
inlineoverridevirtual

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.

Implements JsonSerializationErrorHandler.

◆ get_error()

std::string Bulk_load::Json_serialization_error_handler::get_error ( ) const
inline

◆ InternalError()

void Bulk_load::Json_serialization_error_handler::InternalError ( const char *  message) const
inlineoverridevirtual

Called when an internal error occurs.

Implements JsonSerializationErrorHandler.

◆ InvalidJson()

void Bulk_load::Json_serialization_error_handler::InvalidJson ( ) const
inlineoverridevirtual

Called when an invalid JSON value is encountered.

Implements JsonSerializationErrorHandler.

◆ KeyTooBig()

void Bulk_load::Json_serialization_error_handler::KeyTooBig ( ) const
inlineoverridevirtual

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

Implements JsonSerializationErrorHandler.

◆ TooDeep()

void Bulk_load::Json_serialization_error_handler::TooDeep ( ) const
inlineoverridevirtual

Called when a JSON document has more nesting levels than supported.

Implements JsonSerializationErrorHandler.

◆ ValueTooBig()

void Bulk_load::Json_serialization_error_handler::ValueTooBig ( ) const
inlineoverridevirtual

Called when a JSON document is too big to be stored in the JSON binary format.

Implements JsonSerializationErrorHandler.

Member Data Documentation

◆ m_error

std::string Bulk_load::Json_serialization_error_handler::m_error {}
mutableprivate

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