Table of Contents

Class ServiceBusErrorData

Namespace
Microsoft.ServiceBus
Assembly
Microsoft.ServiceBus.dll

Represents the data associated with the service bus error.

[DataContract(Name = "Error", Namespace = "")]
public class ServiceBusErrorData : IExtensibleDataObject
Inheritance
ServiceBusErrorData
Implements
IExtensibleDataObject
Inherited Members

Constructors

ServiceBusErrorData()

Initializes a new instance of the ServiceBusErrorData class.

public ServiceBusErrorData()

Fields

DetailTag

The tags for the error detail.

public const string DetailTag = "Detail"

Field Value

string

HttpStatusCodeTag

The tag for the HTTP status code.

public const string HttpStatusCodeTag = "Code"

Field Value

string

RootTag

The tag root.

public const string RootTag = "Error"

Field Value

string

Properties

Code

Gets or sets the error code.

[DataMember(Name = "Code", Order = 101, IsRequired = false, EmitDefaultValue = false)]
public int Code { get; set; }

Property Value

int

The error code.

Detail

Gets or sets the error details.

[DataMember(Name = "Detail", Order = 102, IsRequired = false, EmitDefaultValue = false)]
public string Detail { get; set; }

Property Value

string

The error details.

ExtensionData

Gets or sets the extension data objects for the error.

public ExtensionDataObject ExtensionData { get; set; }

Property Value

ExtensionDataObject

The extension data objects for the error.

Methods

GetServiceBusErrorData(HttpWebResponse)

Gets the value of the service bus error data.

public static ServiceBusErrorData GetServiceBusErrorData(HttpWebResponse webResponse)

Parameters

webResponse HttpWebResponse

The HTTP web response.

Returns

ServiceBusErrorData

The value of the service bus error data.