How should the deve...
 
Notifications
Clear all

How should the developer implement error exception handling in their code to handle this?

1 Posts
1 Users
0 Likes
109 Views
(@sitesmario)
Noble Member
Joined: 2 years ago
Posts: 734
Topic starter  

A developer is inserting, updating, and deleting multiple lists of records in a Single transaction and wants to ensure that any error prevents all execution.

How should the developer implement error exception handling in their code to handle this?

  • A . Use Database methods to obtain lists of Database.SaveResults.
  • B . Use Database.setSavepoint() and Database.rollBack() with a Try/Catch statement.
  • C . Use a Try/Catch and use sObject.addError() on any failures.
  • D . Use a Try/Catch statement and handle DML cleanup in the catch statement.

Show Answer Hide Answer

Suggested Answer: B

   
Quote

Latest Salesforce PDII Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: