Email Notifications for Triggers in Error State
For more information about the error state and how to resume the trigger, see the Subscription Statessection in View and Manage an Event’s Subscribers on the Platform Event’s Detail Page. We recommend limiting the retries to fewer than nine times to avoid reaching this state. See Retry Event Triggers with EventBus.RetryableException.
The email notification is not sent for general unhandled exceptions, such as uncatchable limit exceptions. Unlike Apex object triggers, platform event triggers don’t generate exception emails for unhandled exceptions.
For a platform event trigger in the error state, the notification is sent to the developer specified in the trigger’s Last Modified By field. To also send the email to other users, add them on the Apex Exception Email page in Setup. The recipients specified on the Apex Exception Email page also apply to emails sent for Apex object triggers and classes.
To set up more recipients, from Setup, in the Quick Find box, enter Apex Exception Email, and then select Apex Exception Email.
The users and email addresses entered apply to all managed packages in the customer's org. You can also configure Apex exception emails using the Tooling API object ApexEmailNotification.