chsvlib
chsv helper source code

◆ SetWhat() [1/2]

void SetWhat ( char *  lpszOwnedWhat)
protectednoexcept

A method resets the current exception description with the new one, which is specified by a multibyte string.

Parameters
lpszOwnedWhatis a new description for the exception. The string buffer must be allocated by one of the allocation functions given by the Chusov::Memory namespace, because the exception object owns the string buffer and frees it using Chusov::String::FreeStringA when necessary. A wide version of the string is generated by the object automatically on request.