May 2019
Intermediate to advanced
546 pages
12h 41m
English
What happens if you update a record and the update fails because you entered the wrong data? Yes, correct—you get an error message. But behind the scenes, this is what we developers call an exception.
In Salesforce, you have two big types of exceptions:
Standard exceptions are predefined in Salesforce. If you update a record and the update fails, you'll receive a DML exception. If a callout to a web service fails, you will receive a callout exception. You can find all types of standard exceptions in an overview at https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_exception_methods.htm.
But how do we use the standard exceptions? Do you remember, ...
Read now
Unlock full access