Inheritance: System.Exception
Ejemplo n.º 1
0
 private void HandleJobException(JobDownloadViewModel job, NijieException ne)
 {
     job.Status = JobStatus.Error;
     job.Message = Util.GetAllInnerExceptionMessage(ne);
 }
Ejemplo n.º 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 }
       );
 }