Class MicrosoftGraphServiceException
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
typeErrorTypeType of the error
httpResponseCodeintHttp response code of the executed Graph request
responsestringResponse 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
typeErrorTypeType of the error
httpResponseCodeintHttp response code of the executed Graph request
errorJsonElementJson error coming from the executed Graph request
Methods
ToString()
Outputs a MicrosoftGraphServiceException to a string representation
public override string ToString()
Returns
- string
String representation