ExceptionExtensions Class

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

Definition

Provides extension methods for Exception to enhance functionality related to HTTP request execution.
public static class ExceptionExtensions
Inheritance

Methods

IsTransientNetworkError(this 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.