/// <summary> /// 任何svn错误可以在这处理,也可以在这里处理是否取消 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SC_SvnError(object sender, SvnErrorEventArgs e) { e.Cancel = true; WriteError(e.Exception); }
private void svnc_SvnError(object sender, EventArgs ea) { if (this.InvokeRequired) { delEventHandler del = new delEventHandler(svnc_SvnError); this.Invoke(del, sender, ea); } else { SvnErrorEventArgs seea = ea as SvnErrorEventArgs; isDownloading = false; clearNotification1(); MessageBox.Show("SVN Error:\r\n" + seea.Exception.Message); } }
/// <summary> /// Event Handler for the Subversion Error Event. This is /// called when there is a problem with the transfer of /// data to the remote repository /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void client_SvnError(object sender, SvnErrorEventArgs e) { e.Cancel = true; // Use the e.Exception parameter to show error message. this.cleanup_event_handlers(); // Change color of the progress bar this.commit_progress_bar.Foreground = new LinearGradientBrush(Colors.Red, Colors.DarkRed, 45.0); // Launch Error Dialog SvnErrorDialog error = new SvnErrorDialog(); error.Show(); }
private void OnSvnError(object sender, SvnErrorEventArgs svnErrorEventArgs) { Logging.Log().Error($"Error: {svnErrorEventArgs.Exception}"); this.syncLogger.Log(this.sync, $"Error: {svnErrorEventArgs.Exception}"); }
private void SvnUpdateArgsOnSvnError(object sender, SvnErrorEventArgs e) { Logger.LogError(e.Exception.Message, e.Exception.SvnErrorCategory.ToString()); }
void commitArgs_SvnError(object sender, SvnErrorEventArgs e) { System.Diagnostics.Debug.WriteLine(e.Exception); }