Table of Contents

Class MicrosoftGraphError

Namespace
PnP.Core
Assembly
PnP.Core.dll

Microsoft Graph service error

public class MicrosoftGraphError : ServiceError
Inheritance
MicrosoftGraphError
Inherited Members

Constructors

MicrosoftGraphError(ErrorType, int, string)

Default constructor for the MicrosoftGraphError error

public MicrosoftGraphError(ErrorType type, int httpResponseCode, string response)

Parameters

type ErrorType

ErrorType type of the error

httpResponseCode int

Http response code of the service request that failed

response string

String holding the information about the failed request

MicrosoftGraphError(ErrorType, int, JsonElement)

Default constructor for the MicrosoftGraphError error

public MicrosoftGraphError(ErrorType type, int httpResponseCode, JsonElement error)

Parameters

type ErrorType

ErrorType type of the error

httpResponseCode int

Http response code of the service request that failed

error JsonElement

JsonElement holding the json data of the service error

Methods

ToString()

Outputs a MicrosoftGraphError to a string representation

public override string ToString()

Returns

string

String representation