ProcessErrorEventArgs(String, String, Exception, CancellationToken) Constructor

Definition

Initializes a new instance of the ProcessErrorEventArgs structure.

public ProcessErrorEventArgs (string partitionId, string operation, Exception exception, System.Threading.CancellationToken cancellationToken = default);
new Azure.Messaging.EventHubs.Processor.ProcessErrorEventArgs : string * string * Exception * System.Threading.CancellationToken -> Azure.Messaging.EventHubs.Processor.ProcessErrorEventArgs
Public Sub New (partitionId As String, operation As String, exception As Exception, Optional cancellationToken As CancellationToken = Nothing)

Parameters

partitionId
String

The identifier of the partition whose processing threw an exception.

operation
String

A short description of the operation that was being performed when the exception was thrown.

exception
Exception

The exception that was thrown by the EventProcessorClient.

cancellationToken
CancellationToken

A CancellationToken instance to signal the request to cancel the operation.

Applies to