Search Results for

    Show / Hide Table of Contents

    Class SharePointRestServiceException

    Microsoft SharePoint REST Service exception

    Inheritance
    object
    Exception
    PnPException
    ServiceException
    SharePointRestServiceException
    Inherited Members
    PnPException.Error
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: PnP.Core
    Assembly: PnP.Core.dll
    Syntax
    public class SharePointRestServiceException : ServiceException, ISerializable

    Constructors

    SharePointRestServiceException(ErrorType, int, 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

    int httpResponseCode

    Http response code of the service request

    string response

    Response of the service request that errored out

    Dictionary<string, string> responseHeaders

    Optional collection of request response headers

    Methods

    ToString()

    Outputs a SharePointRestServiceException to a string representation

    Declaration
    public override string ToString()
    Returns
    string

    String representation

    Overrides
    Exception.ToString()
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer