Search Results for

    Show / Hide Table of Contents

    Class CsomError

    Csom service error

    Inheritance
    System.Object
    BaseError
    ServiceError
    CsomError
    Inherited Members
    ServiceError.HttpResponseCode
    ServiceError.Message
    ServiceError.ClientRequestId
    ServiceError.Code
    BaseError.Type
    BaseError.PnPCorrelationId
    BaseError.AdditionalData
    BaseError.AddAdditionalData(String, Object)
    Namespace: PnP.Core
    Assembly: PnP.Core.dll
    Syntax
    public class CsomError : ServiceError

    Constructors

    CsomError(ErrorType, Int32, JsonElement)

    Default constructor for the SharePointRestError error

    Declaration
    public CsomError(ErrorType type, int httpResponseCode, JsonElement errorJson)
    Parameters
    ErrorType type

    ErrorType type of the error

    System.Int32 httpResponseCode

    Http response code of the service request that failed

    JsonElement errorJson

    Json containing the error information

    Properties

    ServerErrorCode

    SharePoint server error code

    Declaration
    public long ServerErrorCode { get; }
    Property Value
    System.Int64

    Methods

    ToString()

    Outputs a CsomError 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