Skip to content

ABIGetErrorMessage

ABIGetErrorMessage#

Syntax#

void ABIGetErrorMessage (
    int                 aErrCode,
    const char          *aErrMsg );

Arguments#

Data Type Argument In/Output Description
int aErrCode Input Error code
const char * aErrMsg Output The buffer pointer that retrieves the error message

Description#

This function selects an error message by its error code. When a function of Monitoring API returns an error code, an error message corresponding to the error code can be inquired.

Example#

Please refer to sample_9.c for an application related to this function.

ABIVSession *sVSession;
int          sErrCode;
const char  *sErrMsg;

sErrCode = ABIGetVSession( &sVSession, 1 );
if( sErrCode < 0 )
{
    ABIGetErrorMessage( sErrCode, &sErrMsg );
}