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
boolSpecifies whether or not the exception is transient.
ServiceBusException(bool, Exception)
Returns a new ServiceBusException
public ServiceBusException(bool isTransient, Exception innerException)
Parameters
ServiceBusException(bool, string)
Returns a new ServiceBusException
public ServiceBusException(bool isTransient, string message)
Parameters
isTransient
boolSpecifies whether or not the exception is transient.
message
stringThe detailed message exception.
ServiceBusException(bool, string, Exception)
Returns a new ServiceBusException
public ServiceBusException(bool isTransient, string message, Exception innerException)
Parameters
isTransient
boolSpecifies whether or not the exception is transient.
message
stringThe 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
ServiceBusNamespace
Gets the Service Bus namespace from which the exception occurred, if available.
public string ServiceBusNamespace { get; }