static void OnExceptionNotHandled(object sender, ServicesExceptionNotHandledEventArgs e) { Console.WriteLine("Unhandled Workflow Exception "); Console.WriteLine(" Type: " + e.GetType().ToString()); Console.WriteLine(" Message: " + e.Exception.Message); }
private void workflowRuntime_ServicesExceptionNotHandled(Object sender, ServicesExceptionNotHandledEventArgs e) { if (e.Exception != null) { MessageBox.Show(String.Format("Workflow {0}:\r\n\r\n{1}", e.WorkflowInstanceId, e.Exception)); } }