1
Answer

.net error exception

Mrudul Ganpule

Mrudul Ganpule

10y
860
1
  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)