3.1.4.1.8.1.2 CSOM Error JSON Value
The CSOM error JSON value object is a JSON object that contains information about an error that occurred on the protocol server while processing a request. It contains the following JSON members listed in the following table.
Member name |
Member value |
---|---|
ErrorCode |
A CSOM Int32 JSON value that indicates the error code for the error. This member MUST be present. |
ErrorDetails |
A CSOM value object JSON value that contains detailed information about the error. This member is optional. If there isn’t any detailed information for the error, this member is not present. |
ErrorMessage |
If an error message is generated while executing the request, this value is a CSOM String JSON value that is set to the value of the error message. If no error message is generated, this value MUST be a CSOM null JSON value. This member MUST be present. |
ErrorStackTrace |
If a call-stack trace is generated during the execution of the request, this value is a CSOM String JSON value that contains the call-stack trace information for the error. If no call-stack trace is generated, this value MUST be a CSOM null JSON value. This member is optional. |
ErrorTypeName |
If there is type name information, this value is a CSOM String JSON value with the type name of the error. If there is no type name information, this value MUST be a CSOM null JSON value. This member MUST be present. |
ErrorValue |
If there is additional error information, this value is a CSOM String JSON value with additional information about the error. If there isn’t any additional error information, this MUST be a CSOM null JSON value. This member MUST be present. |
The protocol server MUST return the errors listed in the following table when the specified error condition occurs.
ErrorCode |
ErrorTypeName |
ErrorValue |
Description |
---|---|---|---|
-2147024891 |
System.UnauthorizedAccessException |
CSOM null JSON value |
The user does not have permission to perform the specified actions or access one or more of the specified resources. |
-2130575339 |
Microsoft.SharePoint.Client. VersionConflictException |
CSOM null JSON value |
The version of the CSOM Object that was passed from the protocol client does not match the version of that object on the protocol server. |
-2147024846 |
Microsoft.SharePoint.Client. ApiBlockedException |
CSOM null JSON value |
The property or method is not allowed to be accessed. |
-2130575151 |
Microsoft.SharePoint.Client. NotSupportedRequestVersionException |
A CSOM String JSON value that contains a comma-delimited list of the supported schema versions. |
The schema version specified by the SchemaVersion attribute of the Request element is not supported by the protocol server. |
-2130575152 |
Microsoft.SharePoint.Client. RedirectException |
A CSOM String JSON value that contains the URL that the request is redirected to. |
The request was redirected to another URL by the protocol server. |