Function _conLastError() Foundation

Determines the error code of the last operation.

Syntax
XPPAPIRET _conLastError();
Return

The function returns an error code (XPP_ERR_...).

Description

_conLastError() is used to determine the error code for functions that return no error code. These are the functions for creating containers (_conNew...()) and for modifying containers (_conPut...()). When no error has occurred during the last called function, the return value of _conLastError() is undefined.

Examples
/* 
 Produces an array with 2 x 5000 elements and determines the error if 
the operation fails. 
*/ 
#include <xppcon.h> 

ContainerHandle  hArray; 
XPPAPIRET        xr; 


hArray = _conNewArray(2, 2, 5000); 
if (hArray == NULLCONTAINER) 
{ 
 xr = _conLastError(); 
 /* ... error handling */ 
} 
else 
{ 
 /* ... operations with the array container */ 

 _conRelease(hNew); 
} 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.