Class DynamicRestClientResponseException
Exception thrown when response status does not indicate success (IsSuccessStatusCode) Allows response content and headers to be inspected on failure
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DynamicRestProxy.PortableHttpClient
Assembly: DynamicRestProxy.NetStandard.dll
Syntax
public class DynamicRestClientResponseException : HttpRequestException
Constructors
| Improve this Doc View SourceDynamicRestClientResponseException(HttpResponseMessage)
ctor
Declaration
public DynamicRestClientResponseException(HttpResponseMessage response)
Parameters
Type | Name | Description |
---|---|---|
HttpResponseMessage | response | The response |
DynamicRestClientResponseException(HttpResponseMessage, Exception)
ctore
Declaration
public DynamicRestClientResponseException(HttpResponseMessage response, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
HttpResponseMessage | response | The response |
Exception | inner | An inner exception |
Properties
| Improve this Doc View SourceResponse
The response
Declaration
public HttpResponseMessage Response { get; }
Property Value
Type | Description |
---|---|
HttpResponseMessage |