I have read the documentation and searched but can't seem to find an answer to this.
I am creating a method for 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 say DML errors, but I can't find any reference of what all the possible return messages might be.
Does such a thing exist?