Sprog

ICloudAdapterErrorHandler.HandleTurnErrorAsync Method

Definition

Handles an exception that escaped agent turn processing.

public System.Threading.Tasks.Task HandleTurnErrorAsync(Microsoft.Agents.Builder.ITurnContext turnContext, Exception exception);
abstract member HandleTurnErrorAsync : Microsoft.Agents.Builder.ITurnContext * Exception -> System.Threading.Tasks.Task
Public Function HandleTurnErrorAsync (turnContext As ITurnContext, exception As Exception) As Task

Parameters

turnContext
ITurnContext

The context for the turn that failed.

exception
Exception

The unhandled exception.

Returns

A task representing the asynchronous operation.

Applies to