When retrieving data through an integration, if an error occurs, I want to display a detailed error message to developers for debugging purposes. However, if an end-user encounters the same error, I prefer to show a user-friendly message that doesn't expose technical details.
Discussion posts and replies are publicly visible
I think that's a good idea. Developers like to look for errors in log files. So you could write a technical message to the logs, and show a friendly message to the user.
Hi Stefan Helzle ,how we can display error message differently to developer and user ..is there any function in appian,could you please help me with this
Store the techinical error in the database, and show a friendly error to the user in your interface
If you need to show both errors in the interface, you should check if the logged user is technical or not.(check if the loggedin user belongs to developers group)
Thanks David Jimenez Calleja
That should not be much of a challenge for you as a Senior Developer ?!?
The reason for writing developer message to a log file, or record, is, that a developer needs to be able to see the error without actually looking at the screen at that moment.