Share via


ServiceBusProcessor.OnProcessErrorAsync(ProcessErrorEventArgs) Method

Definition

Invokes the error event handler when an error has occurred during processing. This method can be overridden to raise an event manually for testing purposes.

protected internal virtual System.Threading.Tasks.Task OnProcessErrorAsync (Azure.Messaging.ServiceBus.ProcessErrorEventArgs args);
abstract member OnProcessErrorAsync : Azure.Messaging.ServiceBus.ProcessErrorEventArgs -> System.Threading.Tasks.Task
override this.OnProcessErrorAsync : Azure.Messaging.ServiceBus.ProcessErrorEventArgs -> System.Threading.Tasks.Task
Protected Friend Overridable Function OnProcessErrorAsync (args As ProcessErrorEventArgs) As Task

Parameters

args
ProcessErrorEventArgs

The event args containing information related to the error.

Returns

Applies to