Hello colleagues! Please share your experience, what rules do you use when you create an error message for the user when writing software. For example, the user is trying to download something from the network and put the result in the database. Accordingly, errors can occur both related to the network and to the database. Those. I would tell the user the following (for example):
Failed to load the list of posts: No access to the Internet
Could not load list of posts: Client error 404 not found
Failed to load the post list: Server error 500
Failed to load the list of posts: Error writing to the database
PS Is it possible to display a message from a caught exception?
Thank you for your responses!