chsvlib
chsv helper source code

◆ Exception() [6/7]

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

Constructs an exception based on a textual description, represented as a wide 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 string specifying the description for the created exception object. Example:
throw Chusov::Exceptions::Exception(std::wstring(L"Wide exception test ").append(std::to_wstring(2)));
Defines a class of objects specifying various exceptions with extended support for description format...
Definition: chsvexception.h:392
std::basic_string< wchar_t, std::char_traits< wchar_t >, ::Chusov::Memory::allocator< wchar_t > > wstring
An instantiation of the standard basic_string class template for handling wide strings allocated and ...
Definition: chsvstringex.h:133