Sets a result of the Printf formatting as a new description for the exception object.
- Template Parameters
-
char_t | is a type of the description to be set which is either char or wchar_t . |
- Parameters
-
[in] | ap | is a variable argument list used together with the pszDescriptionFormat formatting string to synthesize a description bound with the exception according to the Printf formatting rules. |
[in] | pszDescriptionFormat | is a zero terminated string specifying a format according to which the description is created. Also, the parameter may contain may contain <CODE> and/or <DESCRIPTION> tags to be replaced by a hexadecimal representation of the errc error code and by a corresponding description. Any angle brackets in the format string are treated specially as stated for the Chusov::String::AllocateAndFormatStringByTagsW, except that in the case of the method user-defined tags are not supported. |
The function is a wrap around the ChsvCodeException::SetCodeAndDescription(code_t nCode, fn_t &&GetDescription, const String::TAG_DESCRIPTION_PARAM_W *restrict pTags, std::size_t cTags, std::va_list ap, const wchar_t *restrict lpszDescriptionFormat).