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
Cause
The cause of the exception.
public HttpRequestFailureCause Cause { get; }
Property Value
HttpResponseMessage
Last HTTP Response message
public HttpResponseMessage HttpResponseMessage { get; }
Property Value
IsServerError
[Obsolete("Use 'Cause==HttpRequestFailureCause.NonSuccessStatusCode' instead")]
public bool IsServerError { get; }
Property Value
StatusCode
HTTP status code (if a response was received). Zero otherwise.
public HttpStatusCode StatusCode { get; }