Udostępnij za pośrednictwem


ServiceBusException Constructors

Definition

Overloads

ServiceBusException()
ServiceBusException(String, ServiceBusFailureReason, String, Exception)

Initializes a new instance of the ServiceBusException class, using the reason to detect whether or not it should be transient.

ServiceBusException(Boolean, String, String, ServiceBusFailureReason, Exception)

Initializes a new instance of the ServiceBusException class.

ServiceBusException()

Source:
ServiceBusException.cs
Source:
ServiceBusException.cs
public ServiceBusException ();
Public Sub New ()

Applies to

ServiceBusException(String, ServiceBusFailureReason, String, Exception)

Source:
ServiceBusException.cs
Source:
ServiceBusException.cs

Initializes a new instance of the ServiceBusException class, using the reason to detect whether or not it should be transient.

public ServiceBusException (string message, Azure.Messaging.ServiceBus.ServiceBusFailureReason reason, string entityPath = default, Exception innerException = default);
new Azure.Messaging.ServiceBus.ServiceBusException : string * Azure.Messaging.ServiceBus.ServiceBusFailureReason * string * Exception -> Azure.Messaging.ServiceBus.ServiceBusException
Public Sub New (message As String, reason As ServiceBusFailureReason, Optional entityPath As String = Nothing, Optional innerException As Exception = Nothing)

Parameters

message
String

The error message that explains the reason for the exception.

reason
ServiceBusFailureReason

The reason for the failure that resulted in the exception.

entityPath
String

The name of the Service Bus entity to which the exception is associated.

innerException
Exception

Applies to

ServiceBusException(Boolean, String, String, ServiceBusFailureReason, Exception)

Source:
ServiceBusException.cs
Source:
ServiceBusException.cs

Initializes a new instance of the ServiceBusException class.

public ServiceBusException (bool isTransient, string message, string entityName = default, Azure.Messaging.ServiceBus.ServiceBusFailureReason reason = Azure.Messaging.ServiceBus.ServiceBusFailureReason.GeneralError, Exception innerException = default);
new Azure.Messaging.ServiceBus.ServiceBusException : bool * string * string * Azure.Messaging.ServiceBus.ServiceBusFailureReason * Exception -> Azure.Messaging.ServiceBus.ServiceBusException
Public Sub New (isTransient As Boolean, message As String, Optional entityName As String = Nothing, Optional reason As ServiceBusFailureReason = Azure.Messaging.ServiceBus.ServiceBusFailureReason.GeneralError, Optional innerException As Exception = Nothing)

Parameters

isTransient
Boolean

true if the exception should be considered transient; otherwise, false.

message
String

The error message that explains the reason for the exception.

entityName
String

The name of the Service Bus entity to which the exception is associated.

reason
ServiceBusFailureReason

The reason for the failure that resulted in the exception.

innerException
Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Applies to