Class HttpException
A base class representing HTTP exceptions thrown by the WhenFreshApiClient.
Inheritance
HttpException
Implements
Inherited Members
Namespace: WhenFresh.Api.Client.Http
Assembly: WhenFresh.Api.Client.dll
Syntax
public class HttpException : ClientException, ISerializable
Constructors
HttpException(HttpResponseMessage)
Initializes a new instance of the HttpException class with a specific message that describes the current exception.
Declaration
public HttpException(HttpResponseMessage response)
Parameters
Type | Name | Description |
---|---|---|
HttpResponseMessage | response | The HttpResponseMessage at the time of the current exception. |
Properties
Response
The HttpResponseMessage at the time of the current exception.
Declaration
public HttpResponseMessage Response { get; }
Property Value
Type | Description |
---|---|
HttpResponseMessage |
Methods
ToString()
A base class representing HTTP exceptions thrown by the WhenFreshApiClient.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |