/// <summary> /// Hangs up if an exception occurs outside the workflow. /// /// For exceptions within the workflow, HandleGeneralFault in the /// speech workflow file will be called. /// </summary> /// <param name="exception">The exception that occurred</param> public void OnUnhandledException(Exception exception) { if (exception != null) { _host.TelephonySession.LoggingManager.LogApplicationError(100, "An unexpected exception occurred: {0}", exception.Message); } else { _host.TelephonySession.LoggingManager.LogApplicationError(100, "An unknown exception occurred: {0}", System.Environment.StackTrace); } _host.OnCompleted(); }