chsvlib
chsv helper source code

◆ message()

std::basic_string<typename std::remove_pointer<char_type>::type> message ( int  err) const

Returns a system-dependent string description of the specified integral error code, which is supposed to be a chsvlib error code.

Template Parameters
char_typeis a type of the string being returned, that is a multi-byte string for char_type = char; or a wide string for char_type= wchar_t.
Parameters
erris an integral error code which is supposed to be one of the chsvlib error codes.
Returns
The function returns a basic_string object with char_type template parameter. The returned basic_string object is constructed as a wrap over a C string returned by the ChsvErrorDescription<char_type> function template.