Notifications
Clear all
Topic starter
31/10/2022 11:38 am
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.
Suggested Answer: B