Share via


BotAdapter.OnTurnError Property

Definition

Gets or sets an error handler that can catch exceptions in the middleware or application.

public Func<Microsoft.Bot.Builder.ITurnContext,Exception,System.Threading.Tasks.Task> OnTurnError { get; set; }
member this.OnTurnError : Func<Microsoft.Bot.Builder.ITurnContext, Exception, System.Threading.Tasks.Task> with get, set
Public Property OnTurnError As Func(Of ITurnContext, Exception, Task)

Property Value

An error handler that can catch exceptions in the middleware or application.

Applies to