Table of Contents

Class ServiceBusException

Namespace
Microsoft.Azure.ServiceBus
Assembly
Microsoft.Azure.ServiceBus.dll

Base Exception for various Service Bus errors.

public class ServiceBusException : Exception, ISerializable
Inheritance
ServiceBusException
Implements
Derived
Inherited Members

Constructors

ServiceBusException(bool)

Returns a new ServiceBusException

public ServiceBusException(bool isTransient)

Parameters

isTransient bool

Specifies whether or not the exception is transient.

ServiceBusException(bool, Exception)

Returns a new ServiceBusException

public ServiceBusException(bool isTransient, Exception innerException)

Parameters

isTransient bool

Specifies whether or not the exception is transient.

innerException Exception

ServiceBusException(bool, string)

Returns a new ServiceBusException

public ServiceBusException(bool isTransient, string message)

Parameters

isTransient bool

Specifies whether or not the exception is transient.

message string

The detailed message exception.

ServiceBusException(bool, string, Exception)

Returns a new ServiceBusException

public ServiceBusException(bool isTransient, string message, Exception innerException)

Parameters

isTransient bool

Specifies whether or not the exception is transient.

message string

The detailed message exception.

innerException Exception

Properties

IsTransient

A boolean indicating if the exception is a transient error or not.

public bool IsTransient { get; }

Property Value

bool

returns true when user can retry the operation that generated the exception without additional intervention.

Message

Gets the message as a formatted string.

public override string Message { get; }

Property Value

string

ServiceBusNamespace

Gets the Service Bus namespace from which the exception occurred, if available.

public string ServiceBusNamespace { get; }

Property Value

string