CloudException::Create Method (HttpRequestMessage^, String^, HttpResponseMessage^, String^, Exception^)

 

Create a CloudException from a failed response.

Namespace:   Microsoft.WindowsAzure
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

public:
static CloudException^ Create(
	HttpRequestMessage^ request,
	String^ requestContent,
	HttpResponseMessage^ response,
	String^ responseContent,
	Exception^ innerException = null
)

Parameters

request
Type: System.Net.Http::HttpRequestMessage^

The HTTP request.

requestContent
Type: System::String^

The HTTP request content.

response
Type: System.Net.Http::HttpResponseMessage^

The HTTP response.

responseContent
Type: System::String^

The HTTP response content.

innerException
Type: System::Exception^

Optional inner exception.

Return Value

Type: Microsoft.WindowsAzure::CloudException^

A CloudException representing the failure.

Return to top
Show: