aciResponseGetErrorStatus
Call the aciResponseGetErrorStatus
function to extract any error information from the response of an ACI server.
Syntax
aciError aciResponseGetErrorStatus( t_aciObject* pResult, t_aciErrorStatus* pError)
Arguments
Arguments | Type/Description |
---|---|
pResult
|
t_aciObject* An ACI object that contains the result returned by an ACI server. |
pError
|
t_aciErrorStatus* An ACI error status structure to hold the error information extracted. |
Discussion
This function extracts any error information from an ACI object that contains the result of a response by an ACI server. It extracts this information to an ACI error status structure.
Returns
An ACI error code.
Example
t_aciErrorStatus* pErrorStatus = NULL; aciErrorStatusCreate(&pErrorStatus); aciResponseGetErrorStatus(pResult, pErrorStatus); if ( pErrorStatus->eResponse != eResponseSuccess) { fprintf(stderr, "The error description is %s\n", pErrorStatus->szErrorDescription); } aciErrorStatusDestroy(&pErrorStatus);