MySQL 8.4.0
Source Code Documentation
String_error_handler Class Reference

Error handler that copies error message into specified buffer. More...

Inheritance diagram for String_error_handler:

Public Member Functions

 String_error_handler (char *buffer, size_t size, unsigned long *out_size=nullptr)
 Object construction. More...
void error (const char *message,...) override
 Copy message into the buffer. More...
- Public Member Functions inherited from IError_handler
virtual ~IError_handler ()=default
 Virtual destructor. More...

Private Attributes

char * m_buffer
 Buffer pointer. More...
size_t m_size
 Buffer size. More...
unsigned long * m_out_size
 Written buffer size. More...

Detailed Description

Error handler that copies error message into specified buffer.

Constructor & Destructor Documentation

◆ String_error_handler()

String_error_handler::String_error_handler ( char *  buffer,
size_t  size,
unsigned long *  out_size = nullptr 

Object construction.

bufferBuffer, where the error is to be copied.
sizeBuffer size.
out_size[out] Written bytes into the buffer.

Member Function Documentation

◆ error()

void String_error_handler::error ( const char *  message,

Copy message into the buffer.

messageMessage to be copied.

Implements IError_handler.

Member Data Documentation

◆ m_buffer

char* String_error_handler::m_buffer

Buffer pointer.

◆ m_out_size

unsigned long* String_error_handler::m_out_size

Written buffer size.

◆ m_size

size_t String_error_handler::m_size

Buffer size.

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