Call the aciResponseGetErrorStatus function to extract any error information from the response of an ACI server.
aciError aciResponseGetErrorStatus( t_aciObject* pResult, t_aciErrorStatus* pError)
| 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. |
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.
An ACI error code.
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);
|
|