Sets a new description for the class object. The description is bound to the exception without any formatting.
- Template Parameters
-
char_t | is a type of the description to be set which is either char or wchar_t . |
- Parameters
-
[in] | pszDescription | is 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.