Closed gabog closed 3 years ago
Logging logic is in the runtime is handled at OnTurnError in CoreBotAdapter, we need to test if: when including an OnError handler, the bot executes the dialog (with friendly message/trace) THEN the OnTurnError in the runtime. If it does, then we don't need to include logging in the dialog. If it ONLY executes the dialog, then we need to add that step as well. I've tested this before but can't recall what the results were.
I think it would be useful to provide a default error handling implementation in the conversational core template (and all templates derived from it)
I am not sure what the recommended practices are to implement error handling and logging in composer, but we should follow them if they exist.
The error handling should:
Runtime considerations:
We should check the adapter code in the runtime but it is important to note that we need additional logic to handle error that may happen in skills. If a bot is a skill consumer we should take a look at the error handling logic in AdapterWithErrorHandle. If the bot is running as a skill, then we should make sure we support the logic that is implemented in SkillAdapterWithErrorHandler