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 | |
---|---|---|
CloudException(String) | Initializes a new instance of the CloudException class. |
|
CloudException(String, Exception) | Initializes a new instance of the CloudException class. |
Properties
Name | Description | |
---|---|---|
Data | (Inherited from Exception.) |
|
ErrorCode | Gets the error code that is returned from the server. |
|
ErrorMessage | Gets the error message that was returned from the server. |
|
HelpLink | (Inherited from Exception.) |
|
HResult | (Inherited from Exception.) |
|
InnerException | (Inherited from Exception.) |
|
Message | (Inherited from Exception.) |
|
Request | Gets information about the associated HTTP request. |
|
RequestId | Gets the request identifier. |
|
Response | Gets information about the associated HTTP response. |
|
RoutingRequestId | Gets the routing request identifier. |
|
Source | (Inherited from Exception.) |
|
StackTrace | (Inherited from Exception.) |
|
TargetSite | (Inherited from Exception.) |
Methods
Name | Description | |
---|---|---|
Create(HttpRequestMessage, String, HttpResponseMessage, String, CloudExceptionType, Exception) | Obsolete.Create a CloudException from a failed response. This method is obsolete. Use Create without defaultTo parameter. |
|
Create(HttpRequestMessage, String, HttpResponseMessage, String, Exception) | Create a CloudException from a failed response. |
|
CreateFromJson(HttpRequestMessage, String, HttpResponseMessage, String, Exception) | Obsolete.Creates a CloudException from a failed response using JSON. |
|
CreateFromXml(HttpRequestMessage, String, HttpResponseMessage, String, Exception) | Obsolete.Creates a CloudException from a failed response that was sent using XML. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetBaseException() | (Inherited from Exception.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetObjectData(SerializationInfo, StreamingContext) | (Inherited from Exception.) |
|
GetType() | (Inherited from Exception.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ParseJsonError(String) | Parse the response content as an JSON error message. |
|
ParseXmlError(String) | Parse the response content as an XML error message. |
|
ParseXmlOrJsonError(String) | Parse the response content as either an XML or JSON error message. |
|
ToString() | (Inherited from Exception.) |
Events
Name | Description | |
---|---|---|
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