BotAdapter.OnTurnError Property
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.
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.