chsvlib
chsv helper source code

◆ SetLastChsvErrorInfo()

void Chusov::SetLastChsvErrorInfo ( chsverror_t  nError,
const void *  pExtraInfo,
std::size_t  cbExtraInfo 
)
noexcept

Sets the a thread specific last error code along with additional data that is supposed to provide extra information about the error.

Parameters
nErroris a full chsvlib error code.
pExtraInfois an optionally provided generic pointer to a memory buffer containing data describing the error. The data may be omitted by setting pExtraInfo to NULL and cbExtraInfo to 0. In this case the function acts just like the SetLastChsvError function. If the pExtraInfo is not NULL the function copies the content of the pExtraInfo to internal data structures as plain text.
cbExtraInfois a byte size of data pointed to by the pExtraInfo. If the pExtraInfo is NULL the cbExtraInfo must be 0.
Remarks
Declared in chsverr.h.
See also
SetLastChsvError(chsverror_t nError);
GetLastChsvError();
GetLastChsvErrorInfo().