Chapter 4: Exceptions and Exception Handling

So far, we have spent a large amount of time discussing the causes of errors and how to develop solutions with Apex in a more defensive manner, to avoid them. In Chapter 1, Common Apex Mistakes, we discussed some common Apex mistakes that can lead to errors and how they can be proactively avoided. In Chapter 2, Debugging Apex, we looked at how we can debug and troubleshoot errors to find and eliminate them from code quickly and repeatably. In Chapter 3, Triggers and Managing Trigger Execution, we focused on triggers and used trigger handler and execution management to effectively control our triggers and avoid some of the common issues that occur within trigger development.

Sadly, it is a fact that ...

Get Mastering Apex Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.