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 tag for the error detail.
public const string DetailTag = "Detail"
Field Value
HttpStatusCodeTag
The tag for the HTTP status code.
public const string HttpStatusCodeTag = "Code"
Field Value
RootTag
The tag root.
public const string RootTag = "Error"
Field Value
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(Stream)
public static ServiceBusErrorData GetServiceBusErrorData(Stream responseStream)
Parameters
responseStream
Stream
Returns
GetServiceBusErrorData(HttpWebResponse)
Gets the value of the service bus error data.
public static ServiceBusErrorData GetServiceBusErrorData(HttpWebResponse webResponse)
Parameters
webResponse
HttpWebResponseThe HTTP web response.
Returns
- ServiceBusErrorData
The value of the service bus error data.