Table of Contents

Class ExceptionExtensions

Namespace
Kampute.HttpClient.Utilities
Assembly
Kampute.HttpClient.dll

Provides extension methods for Exception to enhance functionality related to HTTP request execution.

public static class ExceptionExtensions
Inheritance
ExceptionExtensions
Inherited Members

Methods

IsTransientNetworkError(Exception)

Determines whether a given exception can be considered as a transient network issue for the purposes of retrying an HTTP request.

public static bool IsTransientNetworkError(this Exception exception)

Parameters

exception Exception

The exception encountered during the HTTP request execution.

Returns

bool

true if the error can be considered as a transient network issue and might warrant a retry attempt; false otherwise.