HP BL680c XenEnterprise Management API - Page 285
Error Handling
UPC - 884420396314
View all HP BL680c manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 285 highlights
2.34. ERROR HANDLING CHAPTER 2. API REFERENCE 2.34 Error Handling When a low-level transport error occurs, or a request is malformed at the HTTP or XML-RPC level, the server may send an XML-RPC Fault response, or the client may simulate the same. The client must be prepared to handle these errors, though they may be treated as fatal. On the wire, these are transmitted in a form similar to this: faultCode -1 faultString Malformed request All other failures are reported with a more structured error response, to allow better automatic response to failures, proper internationalisation of any error message, and easier debugging. On the wire, these are transmitted like this: Status Failure ErrorDescription MAP_DUPLICATE_KEY Customer eSpeil Inc. eSpeil Incorporated Note that ErrorDescription value is an array of string values. The first element of the array is an error code; the remainder of the array are strings representing error parameters relating to that code. In this case, the client has attempted to add the mapping Customer → eSpiel Incorporated to a Map, but it already contains the mapping Customer → eSpiel Inc., and so the request has failed. Each possible error code is documented in the following section. 285