Table of Contents

Class SharePointRestServiceException

Namespace
PnP.Core
Assembly
PnP.Core.dll

Microsoft SharePoint REST Service exception

public class SharePointRestServiceException : ServiceException, ISerializable
Inheritance
SharePointRestServiceException
Implements
Inherited Members

Constructors

SharePointRestServiceException(ErrorType, int, string, Dictionary<string, string>)

Creates a SharePointRestServiceException using the provided error type, http response code and request response

public SharePointRestServiceException(ErrorType type, int httpResponseCode, string response, Dictionary<string, string> responseHeaders = null)

Parameters

type ErrorType

Type of the error

httpResponseCode int

Http response code of the service request

response string

Response of the service request that errored out

responseHeaders Dictionary<string, string>

Optional collection of request response headers

Methods

ToString()

Outputs a SharePointRestServiceException to a string representation

public override string ToString()

Returns

string

String representation