1.73.0 (latest) 1.69.0 1.68.0 1.60.0 1.59.0 1.55.0 1.50.0

    public interface IHttpExceptionHandler

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

## Namespace

[Google.Apis.Http](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.md.txt)

## Assembly

Google.Apis.Core.dll

## Methods

### HandleExceptionAsync(HandleExceptionArgs)

    Task<bool> HandleExceptionAsync(HandleExceptionArgs args)

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`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `args` | `HandleExceptionArgs` Handle exception argument which properties such as the request, exception, current failed try. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Taskbool` | Whether this handler has made a change that requires the request to be resent. |

## Extension Method

[Utilities.ThrowIfNull\<T\>(T, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities.md.txt#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)