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

 
Note: This API is now obsolete.

Creates a CloudException from a failed response using JSON.

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

public:
[ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")]
static CloudException^ CreateFromJson(
	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^

The inner exception.

Return Value

Type: Microsoft.WindowsAzure::CloudException^

A CloudException that represents the failure.

Return to top
Show: