CloudException Class

 

Represents the exception that is thrown for responses that are not valid.

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

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.WindowsAzure.CloudException
      Microsoft.WindowsAzure.Management.WebSites.WebSiteCloudException

Syntax

public class CloudException : Exception
public ref class CloudException : Exception
type CloudException = 
    class
        inherit Exception
    end
Public Class CloudException
    Inherits Exception

Constructors

Name Description
System_CAPS_pubmethod CloudException(String)

Initializes a new instance of the CloudException class.

System_CAPS_pubmethod CloudException(String, Exception)

Initializes a new instance of the CloudException class.

Properties

Name Description
System_CAPS_pubproperty Data

(Inherited from Exception.)

System_CAPS_pubproperty ErrorCode

Gets the error code that is returned from the server.

System_CAPS_pubproperty ErrorMessage

Gets the error message that was returned from the server.

System_CAPS_pubproperty HelpLink

(Inherited from Exception.)

System_CAPS_pubproperty HResult

(Inherited from Exception.)

System_CAPS_pubproperty InnerException

(Inherited from Exception.)

System_CAPS_pubproperty Message

(Inherited from Exception.)

System_CAPS_pubproperty Request

Gets information about the associated HTTP request.

System_CAPS_pubproperty RequestId

Gets the request identifier.

System_CAPS_pubproperty Response

Gets information about the associated HTTP response.

System_CAPS_pubproperty RoutingRequestId

Gets the routing request identifier.

System_CAPS_pubproperty Source

(Inherited from Exception.)

System_CAPS_pubproperty StackTrace

(Inherited from Exception.)

System_CAPS_pubproperty TargetSite

(Inherited from Exception.)

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Create(HttpRequestMessage, String, HttpResponseMessage, String, CloudExceptionType, Exception)

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

System_CAPS_pubmethodSystem_CAPS_static Create(HttpRequestMessage, String, HttpResponseMessage, String, Exception)

Create a CloudException from a failed response.

System_CAPS_pubmethodSystem_CAPS_static CreateFromJson(HttpRequestMessage, String, HttpResponseMessage, String, Exception)

Obsolete.Creates a CloudException from a failed response using JSON.

System_CAPS_pubmethodSystem_CAPS_static CreateFromXml(HttpRequestMessage, String, HttpResponseMessage, String, Exception)

Obsolete.Creates a CloudException from a failed response that was sent using XML.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethod GetType()

(Inherited from Exception.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static ParseJsonError(String)

Parse the response content as an JSON error message.

System_CAPS_pubmethodSystem_CAPS_static ParseXmlError(String)

Parse the response content as an XML error message.

System_CAPS_pubmethodSystem_CAPS_static ParseXmlOrJsonError(String)

Parse the response content as either an XML or JSON error message.

System_CAPS_pubmethod ToString()

(Inherited from Exception.)

Events

Name Description
System_CAPS_protevent SerializeObjectState

(Inherited from Exception.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure Namespace

Return to top