PcapPlusPlus  Next
pcpp::MySqlErrorMessage Class Reference

#include <MySqlLayer.h>

Inheritance diagram for pcpp::MySqlErrorMessage:
pcpp::MySqlCommandMessage pcpp::MySqlMessage

Public Member Functions

uint16_t getErrorCode () const
 
std::string getSqlState () const
 
std::string getErrorMessage () const
 
- Public Member Functions inherited from pcpp::MySqlCommandMessage
uint32_t getMessageLength () const override
 Returns the length of the message payload. More...
 
std::vector< uint8_t > getRawPayload () const override
 Returns the raw payload bytes of the message. More...
 
- Public Member Functions inherited from pcpp::MySqlMessage
MySqlMessageType getMessageType () const
 
MySqlMessageOrigin getMessageOrigin () const
 
uint8_t getPacketNumber () const
 Returns the packet number. More...
 
size_t getTotalMessageLength () const
 Returns the total length of the message including the length field. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::MySqlMessage
static std::unique_ptr< MySqlMessageparseMySqlMessage (const uint8_t *data, size_t dataLen, MySqlMessageOrigin origin)
 Parse a MySQL message from raw data. More...
 

Detailed Description

Represents a MySQL error message from the server

Member Function Documentation

◆ getErrorCode()

uint16_t pcpp::MySqlErrorMessage::getErrorCode ( ) const
Returns
The MySQL error code

◆ getErrorMessage()

std::string pcpp::MySqlErrorMessage::getErrorMessage ( ) const
Returns
The error message string

◆ getSqlState()

std::string pcpp::MySqlErrorMessage::getSqlState ( ) const
Returns
The SQL state string (5 characters)