Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sfdcale/4c686babb21d82e65d2fea11e3288cae to your computer and use it in GitHub Desktop.
Save sfdcale/4c686babb21d82e65d2fea11e3288cae to your computer and use it in GitHub Desktop.
How to show exception message in lightning without stacktrace?

This is in reference to post https://salesforce.stackexchange.com/questions/226338/how-to-show-exception-message-in-lightning-without-stacktrace/226381#226381

Here I am attaching the zip file containing all the metadata that you can deploy to org and reproduce the problem.

  1. Download the zip file.
  2. Deploy the zip file to your developer edition org
  3. Find a account which has only one Opportunity.
  4. Update Account Id in OpportunityTrigger.trigger and update Opportunity Id in TestAppController.cls
  5. Edit Account page layout in lightning experience and add HelloWorld.cmp to the layout.
  6. Save the layout.
  7. Once layout is saved, go to the layout and click on delete button as I am doing in this video: https://vimeo.com/281628694
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment