2.2.5.7 CSOM Error

The CSOM error, which conforms to CSOM Error JSON value as specified in [MS-CSOM] section 3.1.4.1.8.1.2, is sent to the protocol client by the protocol server when there is an error while the protocol server processes the OData request. It formats as an OData error response as specified in [MS-ODATA] section 2.2.8.1. The following is the map between the properties in the OData error response and the properties of CSOM Error JSON value.

Error Code: The error code property in the OData error response is the value of CSOM error code concatenated with CSOM error type name with separator comma (,). For example, if the CSOM error’s error code is -2147024846 and the CSOM error type name is Microsoft.SharePoint.Client. ApiBlockedException, the error code in the OData error response is:

 -2147024846,Microsoft.SharePoint.Client. ApiBlockedException

Error Message: The error message property in the OData error response is the value of CSOM error message.

Inner Error: The inner error property in the OData error response is the value of CSOM error call stack.