Release Notes
CRUD-Based API Calls
Error Handling for Session Expiration
Previous Versions
Metadata API calls return error information that your client application can use to identify and resolve runtime errors.
Metadata API provides these types of error handling.
statusCode field in the AsyncResult object for the associated component.statusCode field of the Error object corresponding to each error in the array returned by the errors field of the appropriate result object. For example, the result object of createMetadata() is SaveResult.problem and success fields in the DeployMessage object for the associated component.problem field in the RetrieveMessage object for the associated component.For sample code, see Step 3: Walk Through the Java Sample Code.