private void BtnThrowException_OnClick(object sender, RoutedEventArgs e) { try { TestClassA.A1(); } catch (Exception exp) { ExceptionViewer.Add(exp); } }