DevOps Quick Bites - Apex Error Handling

Share with


In this episode, Rob Cowell explores techniques and best practices for handling Apex exceptions — custom exceptions, logging, notifications and more.

Learn more:

- Crafting more resilient Salesforce apps with advanced Apex error handling: https://grst.co/3BCO0QC

- Testing and test automation course: https://grst.co/3A2TwLL

- Nebula Logger: https://github.com/jongpie/NebulaLogger

Connect with Rob:

LinkedIn: https://www.linkedin.com/in/rob-cowell/

X/Twitter: https://x.com/RobSalesforce

Subscribe to Gearset's YouTube channel: https://grst.co/3uDoSGe

LinkedIn: https://www.linkedin.com/company/gearset

X/Twitter: https://twitter.com/GearsetHQ

Facebook: https://www.facebook.com/gearsethq

About Gearset:

Gearset is the leading Salesforce DevOps platform, with powerful solutions for metadata and CPQ deployments, CI/CD, automated testing, sandbox seeding and backups. It helps Salesforce teams apply DevOps best practices to their development and release process, so they can rapidly and securely deliver higher-quality projects.

Get full access to all of Gearset's features for free with a 30-day trial: https://grst.co/4eYi0EH

Chapters:

00:00 Intro

00:43 Best practices for error handling

01:51 The Apex exception hierarchy

02:36 Custom exceptions

03:11 Logging tools

03:41 Dynamic notifications

04:10 Error recovery

04:36 Summary