使用 Bot Framework 開發 Bot 時,當發生 Exception 時,會出現 “Sorry, my bot code is having an issue.” ,那如果我們要自行處理錯誤呢? 可以參考Bot Framework Custom Error Messages and Exception Handling, Autofac,一個是建立一個 ExceptionHandleDialog 去包,另一個是俢改 PostUnhandledExceptionToUser 這個 Class ,然後再透過 Autofac 來置換成我們的 Class。