Share via


HttpRequestExceptionWithStatus Class

 

Inherits HttpRequestException adding HttpStatusCode to the exception.

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

Inheritance Hierarchy

System.Object
  System.Exception
    System.Net.Http.HttpRequestException
      Microsoft.WindowsAzure.Common.TransientFaultHandling.HttpRequestExceptionWithStatus

Syntax

public class HttpRequestExceptionWithStatus : HttpRequestException
public ref class HttpRequestExceptionWithStatus : HttpRequestException
type HttpRequestExceptionWithStatus = 
    class
        inherit HttpRequestException
    end
Public Class HttpRequestExceptionWithStatus
    Inherits HttpRequestException

Constructors

Name Description
HttpRequestExceptionWithStatus()

Initializes a new instance of the HttpRequestExceptionWithStatus class.

HttpRequestExceptionWithStatus(String)

Initializes a new instance of the HttpRequestExceptionWithStatus class with a specific message that describes the current exception.

HttpRequestExceptionWithStatus(String, Exception)

Initializes a new instance of the HttpRequestExceptionWithStatus class with a specific message that describes the current exception and an inner exception.

Properties

Name Description
Data

(Inherited from Exception.)

HelpLink

(Inherited from Exception.)

HResult

(Inherited from Exception.)

InnerException

(Inherited from Exception.)

Message

(Inherited from Exception.)

Source

(Inherited from Exception.)

StackTrace

(Inherited from Exception.)

StatusCode

Http status code.

TargetSite

(Inherited from Exception.)

Methods

Name Description
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.)

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.Common.TransientFaultHandling Namespace

Return to top