Table of Contents

Class MicrosoftGraphServiceException

Namespace
PnP.Core
Assembly
PnP.Core.dll

Microsoft Graph Service exception

public class MicrosoftGraphServiceException : ServiceException, ISerializable
Inheritance
MicrosoftGraphServiceException
Implements
Inherited Members

Constructors

MicrosoftGraphServiceException(ErrorType, int, string)

Creates a MicrosoftGraphServiceException using the provided error type, http response code and request response

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

Parameters

type ErrorType

Type of the error

httpResponseCode int

Http response code of the executed Graph request

response string

Response of the executed Graph request

MicrosoftGraphServiceException(ErrorType, int, JsonElement)

Creates a MicrosoftGraphServiceException using the provided error type, http response code and request response

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

Parameters

type ErrorType

Type of the error

httpResponseCode int

Http response code of the executed Graph request

error JsonElement

Json error coming from the executed Graph request

Methods

ToString()

Outputs a MicrosoftGraphServiceException to a string representation

public override string ToString()

Returns

string

String representation