If there is any expression evaluation error on interface, how can we display that error on UI if want to show to user. Reason for error need to display on UI.
Discussion posts and replies are publicly visible
As far as i understood the question you want to show not the technical details and just the basic details to the user that some error occurred. If my understanding is correct there is a checkbox which you need to disable it in permissions section in Admin console which gives the basic information about the error to the user.
Yeah just want to show the basic details to user.. actually in interface object when is there is any error in exporting data to Excel by any reason then we show One validation msg to UI. But the requirement is to show basic error details why this particular error occurred along with validation msg.
AFAIK I don't think there is a way to achieve it. You can build some logic around it but none of them will be 100% smooth.