For a feature I am working on, I've been instructed to handle errors by sending emails using the Apex Exception Emails, so when an error occurs, I'm "handling" it by throwing a custom exception.
Now I'd like to see what the email looks like and ensure it would have all the information which might help to diagnose and resolve the problem.
However, no matter what I do to sabotage my solution, I don't receive any emails.
- Yes, I have checked that my User is listed on the Apex Exception Emails page.
- Yes, I have checked that my email address is correct on my User record.
- Yes, I have checked that Deliverability is set to "All email"
- Yes, I have executed Test Deliverability to ensure I can receive emails (and I do).
Googling this issues seems to suggest that these Apex Exception Emails might lag behind up to 24 hours. This is very annoying from a testing perspective and perhaps someone might feel the issues require more urgent attention.
Is there anything which can be done to adjust and minimize this?