chsvlib
chsv helper source code

◆ SetWhat() [2/2]

void SetWhat ( wchar_t *  lpszOwnedWhat)
protectednoexcept

A method resets the current exception description with the new one, which is specified by a wide 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::FreeStringW when necessary. A multi-byte version of the string is generated by the object automatically on request.