Table of Contents

Class ServiceError

Namespace
PnP.Core
Assembly
PnP.Core.dll

Error information for a service error

public class ServiceError : BaseError
Inheritance
ServiceError
Derived
Inherited Members

Constructors

ServiceError(ErrorType, int)

ServiceError constructor using error type and http response code to create a backend service request error

public ServiceError(ErrorType type, int httpResponseCode)

Parameters

type ErrorType

Type of the error

httpResponseCode int

Http response code of the error

Properties

ClientRequestId

Client request id header returned in the response.

public string ClientRequestId { get; }

Property Value

string

Code

Graph error code

public string Code { get; }

Property Value

string

HttpResponseCode

Http response code that was linked to the service error

public int HttpResponseCode { get; }

Property Value

int

Message

Error message that was linked to the service error

public string Message { get; }

Property Value

string