• Home
  • My Account
  • Docs
  • Catalog Browser
  • API Status
Show / Hide Table of Contents

Class HttpException

A base class representing HTTP exceptions thrown by the WhenFreshApiClient.

Inheritance
object
Exception
ClientException
HttpException
QuotaExceededException
UnauthorizedException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.TargetSite
Exception.StackTrace
Exception.Message
Exception.Data
Exception.InnerException
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
Overrides
Exception.ToString()

Implements

ISerializable