Error handling in Bot Framework dialogs
问题 How can I catch all exceptions in dialogs? Is there something like ASP.NET Exception Filter? I want to send different messages to user depending on exception type. Thank you 回答1: You are right about the fact that you can use ExceptionFilter . You just have to do the following: Create your ExceptionFilter class, for example to force the tracking of the exception in Application Insights (or in your case handle specific exception types): using Microsoft.ApplicationInsights; using System.Net.Http