chsvlib
chsv helper source code

◆ Exception() [5/7]

Exception ( const std::basic_string< char, traits_t, alloc_t > &  strDescription)
noexcept

Constructs an exception based on a textual description, represented as a multi-byte std::basic_string object.

Template Parameters
traits_tis a char traits object used by the std::basic_string template.
alloc_tis an allocator object used by the std::basic_string template.
Parameters
[in]strDescriptionis a multi-byte string specifying the description for the created exception object. Example:
throw Chusov::Exceptions::Exception(std::string("Multi-byte exception test ").append(std::to_string(1)));
Defines a class of objects specifying various exceptions with extended support for description format...
Definition: chsvexception.h:392
std::basic_string< char, std::char_traits< char >, ::Chusov::Memory::allocator< char > > string
An instantiation of the standard basic_string class template for handling multi-byte strings allocate...
Definition: chsvstringex.h:126