1
Reply

.net error exception

Mrudul Ganpule

Mrudul Ganpule

Jun 13 2014 12:08 PM
835
  Intuit.Ipp.Data.SalesReceipt salesReceiptAdded = null;
  dataService.AddAsync(addedSalesReceipt);
 
  dataService.OnAddAsyncCompleted += (sender, e) =>
  {
  if (e.Error != null)
  {
  // Error handling code
  // User e.Error to get Error object
  }
  else if (e.Entity != null)
  {
  salesReceiptAdded = e.Entity as Intuit.Ipp.Data.SalesReceipt;
  }
  };

I am confused about dataService.OnAddAsyncCompleted because i got OnAddAsyncCompleted null  so that iam unable to show error from e.Error


Please suggest any solution.

Answers (1)