EventHubsException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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.
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.
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.
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.
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
Azure SDK for .NET