Show / Hide Table of Contents

Class HandleExceptionArgs

Argument class to HandleExceptionAsync(HandleExceptionArgs).

Inheritance
System.Object
HandleExceptionArgs
Inherited Members
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)
System.Object.ToString()
Namespace: Google.Apis.Http
Assembly: Google.Apis.Core.dll
Syntax
public class HandleExceptionArgs

Properties

CancellationToken

Gets or sets the request's cancellation token.

Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
Type Description
System.Threading.CancellationToken

CurrentFailedTry

Gets or sets the current failed try.

Declaration
public int CurrentFailedTry { get; set; }
Property Value
Type Description
System.Int32

Exception

Gets or sets the exception which occurred during sending the request.

Declaration
public Exception Exception { get; set; }
Property Value
Type Description
System.Exception

Request

Gets or sets the sent request.

Declaration
public HttpRequestMessage Request { get; set; }
Property Value
Type Description
System.Net.Http.HttpRequestMessage

SupportsRetry

Gets an indication whether a retry will occur if the handler returns true.

Declaration
public bool SupportsRetry { get; }
Property Value
Type Description
System.Boolean

TotalTries

Gets or sets the total number of tries to send the request.

Declaration
public int TotalTries { get; set; }
Property Value
Type Description
System.Int32

Extension Methods

Utilities.ThrowIfNull<T>(T, String)
In This Article
Back to top