WebSiteCloudException.CreateFromXml Method

Definition

Create a CloudException from a failed response sending XML content.

public static Hyak.Common.CloudException CreateFromXml (System.Net.Http.HttpRequestMessage request, string requestContent, System.Net.Http.HttpResponseMessage response, string responseContent, Exception innerException = default);
static member CreateFromXml : System.Net.Http.HttpRequestMessage * string * System.Net.Http.HttpResponseMessage * string * Exception -> Hyak.Common.CloudException
Public Shared Function CreateFromXml (request As HttpRequestMessage, requestContent As String, response As HttpResponseMessage, responseContent As String, Optional innerException As Exception = Nothing) As CloudException

Parameters

request
HttpRequestMessage

The HTTP request.

requestContent
String

The HTTP request content.

response
HttpResponseMessage

The HTTP response.

responseContent
String

The HTTP response content.

innerException
Exception

Optional inner exception.

Returns

Hyak.Common.CloudException

A CloudException representing the failure.

Applies to