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 . |
DescriptionFormatParams | Deduced types of additional arguments passed to the function to format the message. |
- Parameters
-
[in] | pszDescriptionFormat | is a zero terminated string together with additional parameters specifying a Printf format string 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 respectively. 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. |
[in] | formatting_params | is a set of variable arguments used together with the pszDescriptionFormat formatting string to synthesize a description bound with the exception according to the Printf formatting rules. |
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).