A unary function wrapped around the Chusov::ChsvErrorDescription function in order for the latter to be provided as a function object mapping an integral error code to a string description to replace <DESCRIPTION>
tags during by-tag formatting of an exception description.
- Template Parameters
-
char_t | is a type of the description to be set which is either char or wchar_t . |
- Parameters
-
nErr | is an integral chsvlib error code. |
- Returns
- Returns a constant pointer to a zero terminated string representing the description according to the error code. The pointer is passed directly from a return value of the Chusov::ChsvErrorDescriptionW function.