Class HttpResponseWithError<TErrorResponse>
This container can be used to get the details of a response without content but with a potential error
Inheritance
System.Object
HttpResponseWithError<TErrorResponse>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.HttpExtensions
Assembly: Dapplo.HttpExtensions.dll
Syntax
public class HttpResponseWithError<TErrorResponse> : HttpResponse where TErrorResponse : class
Type Parameters
Name | Description |
---|---|
TErrorResponse | Type for the error response |
Properties
| Improve this Doc View SourceErrorResponse
The response if there was an error Will be filled due to the annotation
Declaration
public TErrorResponse ErrorResponse { get; set; }
Property Value
Type | Description |
---|---|
TErrorResponse |
HasError
Was there an error?
Declaration
public bool HasError { get; }
Property Value
Type | Description |
---|---|
System.Boolean |