Class SharePointRestError
SharePoint Rest service error
public class SharePointRestError : ServiceError
- Inheritance
-
SharePointRestError
- Inherited Members
Constructors
SharePointRestError(ErrorType, int, string, Dictionary<string, string>)
Default constructor for the SharePointRestError error
public SharePointRestError(ErrorType type, int httpResponseCode, string response, Dictionary<string, string> responseHeaders = null)
Parameters
typeErrorTypeErrorType type of the error
httpResponseCodeintHttp response code of the service request that failed
responsestringService request response content
responseHeadersDictionary<string, string>Optional collection of request response headers
Properties
ServerErrorCode
SharePoint server error code
public long ServerErrorCode { get; }
Property Value
Methods
ToString()
Outputs a SharePointRestError to a string representation
public override string ToString()
Returns
- string
String representation