You are here:
Handling Apex Exceptions in Managed Packages
When you create a managed package for AppExchange, you can specify a user to receive an email notification when an exception occurs that Apex doesn’t catch.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
When you create a managed package for AppExchange, you can specify a user to receive an email notification when an exception occurs that Apex doesn’t catch.
| Available in: Salesforce Classic (not available in all orgs) |
| Available in: Performance, Unlimited, Developer, and Enterprise Editions |
| User Permissions Needed | |
|---|---|
| To create packages: | Create AppExchange Packages |
| To upload packages: | Upload AppExchange Packages |
| To create Apex: | Author Apex |
Uncaught exceptions can be thrown from:
The email that is sent has this format.
-------------------------------------------------------------------------------- Subject: Developer script exception from CLASSNAME Apex script unhandled trigger exception by user/organization: USER_ID/ORG_ID EXCEPTION_STRING STACK_TRACE --------------------------------------------------------------------------------
For example:
-------------------------------------------------------------------------------- From: Apex Application? <info@salesforce.com> To: joeuser@salesforce.com <joeuser@salesforce.com> Subject: Developer script exception from Gack WS? Date: Mon, 26 Nov 2007 14:42:41 +0000 (GMT) (06:42 PST) Apex script unhandled trigger exception by user/organization: 010x0000000rfPg/00Fx00000009ejj TestException.Test Exception?: Gack WS exception Class.Gack WS?.gackTestException: line 4, column 11 --------------------------------------------------------------------------------

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.