Mrudul Ganpule

Mrudul Ganpule

  • NA
  • 23
  • 25.6k

.net error exception

Jun 13 2014 12:08 PM
  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)