Search Results for

    Show / Hide Table of Contents

    Class SharePointRestError

    SharePoint Rest service error

    Inheritance
    object
    BaseError
    ServiceError
    SharePointRestError
    Inherited Members
    ServiceError.HttpResponseCode
    ServiceError.Message
    ServiceError.ClientRequestId
    ServiceError.Code
    BaseError.Type
    BaseError.PnPCorrelationId
    BaseError.AdditionalData
    BaseError.AddAdditionalData(string, object)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: PnP.Core
    Assembly: PnP.Core.dll
    Syntax
    public class SharePointRestError : ServiceError

    Constructors

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

    Default constructor for the SharePointRestError error

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

    ErrorType type of the error

    int httpResponseCode

    Http response code of the service request that failed

    string response

    Service request response content

    Dictionary<string, string> responseHeaders

    Optional collection of request response headers

    Properties

    ServerErrorCode

    SharePoint server error code

    Declaration
    public long ServerErrorCode { get; }
    Property Value
    long

    Methods

    ToString()

    Outputs a SharePointRestError to a string representation

    Declaration
    public override string ToString()
    Returns
    string

    String representation

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