Table of Contents

Class CsomError

Namespace
PnP.Core
Assembly
PnP.Core.dll

Csom service error

public class CsomError : ServiceError
Inheritance
CsomError
Inherited Members

Constructors

CsomError(ErrorType, int, JsonElement)

Default constructor for the SharePointRestError error

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

Parameters

type ErrorType

ErrorType type of the error

httpResponseCode int

Http response code of the service request that failed

errorJson JsonElement

Json containing the error information

Properties

ServerErrorCode

SharePoint server error code

public long ServerErrorCode { get; }

Property Value

long

Methods

ToString()

Outputs a CsomError to a string representation

public override string ToString()

Returns

string

String representation