To comment on Kevin D's comment, it really depends on your expected user audience. If they are technically competent, you can use the exception text as is. If not, I would prefix the message with "An error occurred, contact your technical support staff with the following information:" then add an error message and, ideally, a unique identifier to search for a related journal entry ... I often use a timestamp for this.
If you really want to get some imagination, you can email technical support technicians who have much more detailed information, for example, about an exclusive and complete stack trace, a copy of a journal entry, etc. I have done this in the past, but you have to be careful, a frequently occurring error will quickly fill the mailbox :)
Of course, if the error can be corrected by the user, then you can simply say this (and how to do it) in your message. It is about as thorough and interesting as you can get ...
Bigmac66
source share