Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What are the apex exceptions?

Asked by David Edmunds May 4, 2023 560 views 1 answer
Share

About this question

 I have read the documentation and searched but can't seem to find an answer to this.


I am creating a method for a portal. I need to pass any errors back to the front end portal in a way that the front end designer can present them to the user in a way the user will understand (instead of the raw error message).


I want to map friendly messages to the common exceptions we might expect to get. But short of causing the code to error and reading the message I can't find a way to find all possible messages.


Is there not somewhere a reference of all possible errors? I can find how to catch DML errors, but I can't find any reference of what all the possible return messages might be.

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.