Table of Contents

Class HttpRequestExecutionException

Namespace
Homa.Sdk.Foundation
Assembly
Homa.Sdk.Foundation.dll

Exception thrown by IHttpRequest<T> during execution, if there was any error, or backend has responded with 3xx, 4xx, or 5xx code.

public class HttpRequestExecutionException : Exception, ISerializable
Inheritance
HttpRequestExecutionException
Implements
Inherited Members

Properties

AttemptsMade

Number of request attempts that were made before the exception was thrown

public int AttemptsMade { get; }

Property Value

int

Cause

The cause of the exception.

public HttpRequestFailureCause Cause { get; }

Property Value

HttpRequestFailureCause

HttpResponseMessage

Last HTTP Response message

public HttpResponseMessage HttpResponseMessage { get; }

Property Value

HttpResponseMessage

IsServerError

True if the exception is a result of non-success response code from server, but the server was reached. False otherwise.

[Obsolete("Use 'Cause==HttpRequestFailureCause.NonSuccessStatusCode' instead")]
public bool IsServerError { get; }

Property Value

bool

StatusCode

HTTP status code (if a response was received). Zero otherwise.

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode