Share via


EventHubsException Constructors

Definition

Overloads

EventHubsException(Boolean, String)

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String, EventHubsException+FailureReason)

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String, String)

Initializes a new instance of the EventHubsException class.

EventHubsException(String, String, EventHubsException+FailureReason)

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

EventHubsException(Boolean, String, String, EventHubsException+FailureReason)

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String, String, Exception)

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String, String, EventHubsException+FailureReason, Exception)

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

Initializes a new instance of the EventHubsException class.

public EventHubsException (bool isTransient, string eventHubName);
new Azure.Messaging.EventHubs.EventHubsException : bool * string -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String)

Parameters

isTransient
Boolean

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

eventHubName
String

The name of the Event Hub to which the exception is associated.

Applies to

EventHubsException(Boolean, String, EventHubsException+FailureReason)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

Initializes a new instance of the EventHubsException class.

public EventHubsException (bool isTransient, string eventHubName, Azure.Messaging.EventHubs.EventHubsException.FailureReason reason);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * Azure.Messaging.EventHubs.EventHubsException.FailureReason -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, reason As EventHubsException.FailureReason)

Parameters

isTransient
Boolean

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

eventHubName
String

The name of the Event Hub to which the exception is associated.

reason
EventHubsException.FailureReason

The reason for the failure that resulted in the exception.

Applies to

EventHubsException(Boolean, String, String)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

Initializes a new instance of the EventHubsException class.

public EventHubsException (bool isTransient, string eventHubName, string message);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * string -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, message As String)

Parameters

isTransient
Boolean

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

eventHubName
String

The name of the Event Hub to which the exception is associated.

message
String

The error message that explains the reason for the exception.

Applies to

EventHubsException(String, String, EventHubsException+FailureReason)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

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

public EventHubsException (string eventHubName, string message, Azure.Messaging.EventHubs.EventHubsException.FailureReason reason);
new Azure.Messaging.EventHubs.EventHubsException : string * string * Azure.Messaging.EventHubs.EventHubsException.FailureReason -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (eventHubName As String, message As String, reason As EventHubsException.FailureReason)

Parameters

eventHubName
String

The name of the Event Hub to which the exception is associated.

message
String

The error message that explains the reason for the exception.

reason
EventHubsException.FailureReason

The reason for the failure that resulted in the exception.

Applies to

EventHubsException(Boolean, String, String, EventHubsException+FailureReason)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

Initializes a new instance of the EventHubsException class.

public EventHubsException (bool isTransient, string eventHubName, string message, Azure.Messaging.EventHubs.EventHubsException.FailureReason reason);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * string * Azure.Messaging.EventHubs.EventHubsException.FailureReason -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, message As String, reason As EventHubsException.FailureReason)

Parameters

isTransient
Boolean

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

eventHubName
String

The name of the Event Hub to which the exception is associated.

message
String

The error message that explains the reason for the exception.

reason
EventHubsException.FailureReason

The reason for the failure that resulted in the exception.

Applies to

EventHubsException(Boolean, String, String, Exception)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

Initializes a new instance of the EventHubsException class.

public EventHubsException (bool isTransient, string eventHubName, string message, Exception innerException);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * string * Exception -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, message As String, innerException As Exception)

Parameters

isTransient
Boolean

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

eventHubName
String

The name of the Event Hub to which the exception is associated.

message
String

The error message that explains the reason for 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

EventHubsException(Boolean, String, String, EventHubsException+FailureReason, Exception)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

Initializes a new instance of the EventHubsException class.

public EventHubsException (bool isTransient, string eventHubName, string message, Azure.Messaging.EventHubs.EventHubsException.FailureReason reason, Exception innerException);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * string * Azure.Messaging.EventHubs.EventHubsException.FailureReason * Exception -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, message As String, reason As EventHubsException.FailureReason, innerException As Exception)

Parameters

isTransient
Boolean

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

eventHubName
String

The name of the Event Hub to which the exception is associated.

message
String

The error message that explains the reason for the exception.

reason
EventHubsException.FailureReason

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