Наследование: System.Exception
Пример #1
0
 private void HandleJobException(JobDownloadViewModel job, NijieException ne)
 {
     job.Status = JobStatus.Error;
     job.Message = Util.GetAllInnerExceptionMessage(ne);
 }
Пример #2
0
 private void addException(JobDownloadViewModel job, NijieException nex, string url, string filename)
 {
     Application.Current.Dispatcher.BeginInvoke(
          new Action<BatchDownloadPage>((y) =>
          {
              if (nex.ErrorCode != NijieException.DOWNLOAD_SKIPPED)
              {
                  nex.Url = url;
                  nex.Filename = filename;
                  job.Exceptions.Add(nex);
                  job.HasError = true;
              }
          }),
          new object[] { null }
       );
 }