chsvlib
chsv helper source code

◆ SetDescription() [5/5]

void SetDescription ( noformat  ,
const char_t *  pszDescription 
)
protectednoexcept

Sets a new description for the class object. The description is bound to the exception without any formatting.

Template Parameters
char_tis a type of the description to be set which is either char or wchar_t.
Parameters
[in]pszDescriptionis a constant pointer to a C string directly copied and set as an exception description. The pointer can be NULL, in which case no description is created, and, if a client calls what or What method, the returned string will state about the description is missing.

The function is a wrap around the ChsvCodeException::SetCodeAndDescription(code_t nCode, const char_t* pszDescription) function.