Show / Hide Table of Contents

Interface IHttpExceptionHandler

Exception handler is invoked when an exception is thrown during a HTTP request.

Namespace: Google.Apis.Http
Assembly: Google.Apis.Core.dll
Syntax
public interface IHttpExceptionHandler

Methods

HandleExceptionAsync(HandleExceptionArgs)

Handles an exception thrown when sending a HTTP request. A simple rule must be followed, if you modify the request object in a way that the exception can be resolved, you must return true.

Declaration
Task<bool> HandleExceptionAsync(HandleExceptionArgs args)
Parameters
Type Name Description
HandleExceptionArgs args

Handle exception argument which properties such as the request, exception, current failed try.

Returns
Type Description
Task<bool>

Whether this handler has made a change that requires the request to be resent.

Extension Methods

Utilities.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX