Table of Contents

Class SharePointRestError

Namespace
PnP.Core
Assembly
PnP.Core.dll

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

type ErrorType

ErrorType type of the error

httpResponseCode int

Http response code of the service request that failed

response string

Service request response content

responseHeaders Dictionary<string, string>

Optional collection of request response headers

Properties

ServerErrorCode

SharePoint server error code

public long ServerErrorCode { get; }

Property Value

long

Methods

ToString()

Outputs a SharePointRestError to a string representation

public override string ToString()

Returns

string

String representation