function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
neoocmwtfneoocmwtf 

Exception Emails

Hi there.

 

I am not getting the exception emails telling me where in the class the exception occurs. Debugging has become a nightmare!

 

Any ideas on how to solve it?

 

Thanks!

Greg HGreg H

I like to use a try / catch clause so that the error will get kicked to the system log as I test.

try { //Code here } catch(Exception e) { //catch any errors System.debug('Code is busted: ' + e.getMessage()); //write error to the debug log }

 

This eliminates the need to rely on those email notifications because the error is in the debug log in real-time.

-greg