Vi18nErrorMsg


Call the Vi18nErrorMsg function to obtain a string that describes the specified error.


Syntax

char *Vi18ErrorMsg(Vi18nError err)

Arguments

 


err

Vi18nError   The error code.


Returns

A pointer to the string that contains the error.


Example

Vi18nError err;
if (Vi18nSuccess !=(err = Vi18nClose((void*)pVSes->vi18nContext)))
  vgw_errPrint(pVSes, VdkMessageType_Warn,
  (VdkCString)Vi18nErrorMsg(err));
pVSes->vi18nContext = NULL;
...

void
vgw_errPrint(VgwAppSession pSession, VdkMessageType type,              VdkCString str)
{
VdkDrvObjs drvData = NULL;

if( !str || !pSession || !pSession->drvAppData )
return;

drvData = (VdkDrvObjs)(pSession->drvAppData);

if (drvData->ErrorCB)
(*drvData->ErrorCB)(drvData->ErrorArg, type, str);
}