Constructs an exception object by a specified error code, and a description provided by an std::basic_string object. .
- Template Parameters
-
char_t | is a type of a symbol of an std::basic_string object specifying the description. |
traits_t | is a type of a character traits class that is used by the std::basic_string template. |
alloc_t | is a type of an allocator class used by the std::basic_string template. |
- Parameters
-
[in] | nCode | is a code to be associated with the constructed exception object. |
[in] | strDescriptionFormat | is an std::basic_string object specifying the description. Unlike other constructors, the current one performs neither tag nor Printf formatting. The string is set as the description of the exception "as-is". However, if the string is empty, the actual description set is a notification saying that the description is not specified. |
The constructor creates an instance of the ExceptionWithGenericCode<code_t>
class with associated error code and the description. The description is constructed without any formatting, performed by other constructors of the ExceptionWithGenericCode
class.
- See also
- ExceptionWithGenericCode(code_t nCode, fn_t&& GetDescription, const char_t* restrict lpszDescriptionFormat, DescriptionFormatParams... formatting_params);
ExceptionWithGenericCode(code_t nCode, fn_t&& GetDescription, Exception::vararg_tag_t, _In_opt_z_ const char_t* RESTRICT lpszDescriptionFormat, std::va_list ap);
ExceptionWithGenericCode(code_t nCode, Exception::vararg_tag_t, _In_opt_z_ const char_t* RESTRICT lpszDescriptionFormat, std::va_list ap).