MySQL 9.1.0
Source Code Documentation
Error_action_packet Class Reference

A packet to inform the applier it should fail. More...

#include <applier.h>

Inheritance diagram for Error_action_packet:
[legend]

Public Member Functions

 Error_action_packet (const char *error_message)
 Create a new error packet. More...
 
 ~Error_action_packet () override=default
 
const char * get_error_message ()
 Returns the error message for the failure. More...
 
- Public Member Functions inherited from Packet
 Packet (int type)
 Create a new generic packet of a certain type. More...
 
virtual ~Packet ()=default
 
int get_packet_type ()
 

Private Attributes

const char * m_error_message
 The error message for the failure process. More...
 

Detailed Description

A packet to inform the applier it should fail.

It should include a message about the failure

Constructor & Destructor Documentation

◆ Error_action_packet()

Error_action_packet::Error_action_packet ( const char *  error_message)
inline

Create a new error packet.

Parameters
error_messagethe error that will make the applier stop

◆ ~Error_action_packet()

Error_action_packet::~Error_action_packet ( )
overridedefault

Member Function Documentation

◆ get_error_message()

const char * Error_action_packet::get_error_message ( )
inline

Returns the error message for the failure.

Returns
the error message

Member Data Documentation

◆ m_error_message

const char* Error_action_packet::m_error_message
private

The error message for the failure process.


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