private void RaiseError(Exception e) { Exception exception = new Exception(string.Format(errorMessage, e.Message)); RecordErrorEventArgs ea = new RecordErrorEventArgs(exception); this.OnError(ea); }
private void OnError(RecordErrorEventArgs e) { if (this.Error != null) { this.Error(this, e); } }
private void recorder_Error(object sender, RecordErrorEventArgs e) { Trace.TraceError(e.Exception.ToString()); Exception inneException = e.Exception.InnerException; if (inneException is TrackingException) { // This usually happens if specified window get closed this.ResetTracker(); } this.view.ShowError(e.Exception.Message); this.anyRecord = IOUtil.FileExists(this.recorder.FileName); }