chsvlib
chsv helper source code

◆ get_description()

static const char_t* get_description ( code_t  nErr)
staticnoexcept

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_tis a type of the description to be set which is either char or wchar_t.
Parameters
nErris 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.