Show / Hide Table of Contents

Class ClientException

Class for client error exception.

Inheritance
System.Object
System.Exception
ClientException
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Microsoft.Graph.CoreSDK.Exceptions
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public class ClientException : Exception

Constructors

View Source

ClientException(Error, Exception)

Initializes a new instance of the ClientException class.

Declaration
public ClientException(Error error, Exception innerException = null)
Parameters
Type Name Description
Error error

The Error to wrap.

System.Exception innerException

The System.Exception to wrap.

Properties

View Source

Error

Gets the error.

Declaration
public Error Error { get; }
Property Value
Type Description
Error

The error.

View Source

ResponseHeaders

Gets the ResponseHeaders. ResponseHeaders and StatusCode exposed as pass-through.

Declaration
public HttpResponseHeaders ResponseHeaders { get; }
Property Value
Type Description
System.Net.Http.Headers.HttpResponseHeaders

The ResponseHeaders.

View Source

StatusCode

Gets StatusCode.

Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type Description
System.Net.HttpStatusCode

The StatusCode.

Methods

View Source

IsMatch(String)

Check if given error code matches current one.

Declaration
public bool IsMatch(string errorCode)
Parameters
Type Name Description
System.String errorCode

The error code to check against

Returns
Type Description
System.Boolean

bool

  • View Source
Back to top Generated by DocFX