共用方式為


ServiceException Class

Definition

Graph service exception.

public class ServiceException : Exception
type ServiceException = class
    inherit Exception
Public Class ServiceException
Inherits Exception
Inheritance
ServiceException
Derived

Constructors

ServiceException(Error, Exception)

Creates a new service exception.

ServiceException(Error, HttpResponseHeaders, HttpStatusCode, Exception)

Creates a new service exception.

ServiceException(Error, HttpResponseHeaders, HttpStatusCode, String, Exception)

Creates a new service exception.

Properties

Error

The error from the service exception.

RawResponseBody

Provide the raw JSON response body.

ResponseHeaders

The HTTP response headers from the response.

StatusCode

The HTTP status code from the response.

Methods

IsMatch(String)

Checks if a given error code has been returned in the response at any level in the error stack.

ToString()

Creates and returns a string representation of the current exception.

Applies to