HttpResponseException Constructors

Definition

Overloads

HttpResponseException(HttpResponseMessage)

Initializes a new instance of the HttpResponseException class.

HttpResponseException(HttpStatusCode)

Initializes a new instance of the HttpResponseException class.

HttpResponseException(HttpResponseMessage)

Initializes a new instance of the HttpResponseException class.

public:
 HttpResponseException(System::Net::Http::HttpResponseMessage ^ response);
public HttpResponseException (System.Net.Http.HttpResponseMessage response);
new System.Web.Http.HttpResponseException : System.Net.Http.HttpResponseMessage -> System.Web.Http.HttpResponseException
Public Sub New (response As HttpResponseMessage)

Parameters

response
HttpResponseMessage

The response message.

HttpResponseException(HttpStatusCode)

Initializes a new instance of the HttpResponseException class.

public:
 HttpResponseException(System::Net::HttpStatusCode statusCode);
public HttpResponseException (System.Net.HttpStatusCode statusCode);
new System.Web.Http.HttpResponseException : System.Net.HttpStatusCode -> System.Web.Http.HttpResponseException
Public Sub New (statusCode As HttpStatusCode)

Parameters

statusCode
HttpStatusCode

The status code of the response.

Applies to