Share via


CloudException.Create Method (HttpRequestMessage, String, HttpResponseMessage, String, CloudExceptionType, Exception)

 

Note: This API is now obsolete.

Create a CloudException from a failed response. This method is obsolete. Use Create without defaultTo parameter.

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

Syntax

[ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")]
public static CloudException Create(
    HttpRequestMessage request,
    string requestContent,
    HttpResponseMessage response,
    string responseContent,
    CloudExceptionType defaultTo,
    Exception innerException = null
)
public:
[ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")]
static CloudException^ Create(
    HttpRequestMessage^ request,
    String^ requestContent,
    HttpResponseMessage^ response,
    String^ responseContent,
    CloudExceptionType defaultTo,
    Exception^ innerException = null
)
[<ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")>]
static member Create : 
        request:HttpRequestMessage *
        requestContent:string *
        response:HttpResponseMessage *
        responseContent:string *
        defaultTo:CloudExceptionType *
        innerException:Exception = null -> CloudException
<ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")>
Public Shared Function Create (
    request As HttpRequestMessage,
    requestContent As String,
    response As HttpResponseMessage,
    responseContent As String,
    defaultTo As CloudExceptionType,
    innerException As Exception
) As CloudException

Parameters

Return Value

Type: Microsoft.WindowsAzure.CloudException

A CloudException representing the failure.

See Also

Create Overload
CloudException Class
Microsoft.WindowsAzure Namespace

Return to top