Search Results for

    Show / Hide Table of Contents

    Class SharePointRestServiceException

    Microsoft SharePoint REST Service exception

    Inheritance
    System.Object
    PnPException
    ServiceException
    SharePointRestServiceException
    Inherited Members
    PnPException.Error
    Namespace: PnP.Core
    Assembly: PnP.Core.dll
    Syntax
    public class SharePointRestServiceException : ServiceException

    Constructors

    SharePointRestServiceException(ErrorType, Int32, String, Dictionary<String, String>)

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

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

    Type of the error

    System.Int32 httpResponseCode

    Http response code of the service request

    System.String response

    Response of the service request that errored out

    Dictionary<System.String, System.String> responseHeaders

    Optional collection of request response headers

    Methods

    ToString()

    Outputs a SharePointRestServiceException to a string representation

    Declaration
    public override string ToString()
    Returns
    System.String

    String representation

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer