ProcessErrorEventArgs(String, String, Exception, CancellationToken) 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 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET