MySQL 9.1.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:
[legend]

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 
)
inline

Object construction.

Parameters
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,
  ... 
)
inlineoverridevirtual

Copy message into the buffer.

Parameters
messageMessage to be copied.

Implements IError_handler.

Member Data Documentation

◆ m_buffer

char* String_error_handler::m_buffer
private

Buffer pointer.

◆ m_out_size

unsigned long* String_error_handler::m_out_size
private

Written buffer size.

◆ m_size

size_t String_error_handler::m_size
private

Buffer size.


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