chsvlib
chsv helper source code

◆ ChsvCodeExceptionTempl() [4/4]

ChsvCodeExceptionTempl ( const std::basic_string< char_t, traits_t, alloc_t > &  strDescription)
noexcept

Constructs an exception object with the description copied directly from a value of std::basic_string object, without any formatting. If the string is empty, the constructed exception description is a value returned by the Chusov::ChsvErrorDescriptionW function. .

Template Parameters
char_tis a type of a symbol of an std::basic_string object specifying the description.
traits_tis a type of a character traits class that is used by the std::basic_string template.
alloc_tis a type of an allocator class used by the std::basic_string template.
Parameters
strDescriptionis a string represented as a std::basic_string object to specify the textual description of the constructed exception. Unlike the other constructors, the current one copies the string "as-is" without any formatting. I.e. any tags within the string will be copied directly into the description string without any changes. However if the string is empty, the actual description would be a string returned by the Chusov::ChsvErrorDescriptionW function.