ProcessErrorEventArgs Constructor
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.
Initializes a new instance of the ProcessErrorEventArgs class.
public ProcessErrorEventArgs (Exception exception, Azure.Messaging.ServiceBus.ServiceBusErrorSource errorSource, string fullyQualifiedNamespace, string entityPath, string identifier, System.Threading.CancellationToken cancellationToken);
new Azure.Messaging.ServiceBus.ProcessErrorEventArgs : Exception * Azure.Messaging.ServiceBus.ServiceBusErrorSource * string * string * string * System.Threading.CancellationToken -> Azure.Messaging.ServiceBus.ProcessErrorEventArgs
Public Sub New (exception As Exception, errorSource As ServiceBusErrorSource, fullyQualifiedNamespace As String, entityPath As String, identifier As String, cancellationToken As CancellationToken)
Parameters
- exception
- Exception
The exception that triggered the call to the error event handler.
- errorSource
- ServiceBusErrorSource
The source associated with the error.
- fullyQualifiedNamespace
- String
The endpoint used when this exception occurred.
- entityPath
- String
The entity path used when this exception occurred.
- identifier
- String
The identifier of the processor that reported this error.
- cancellationToken
- CancellationToken
The processor's CancellationToken instance which will be cancelled in the event that StopProcessingAsync(CancellationToken) is called.
Applies to
Azure SDK for .NET