[PEGA 7.1.6] Display User-Friendly Message for all Errors/Exceptions Thrown in Pega UI
I am working for a Japanese client. They are asking if it is possible that, instead of showing these cryptic, usually English, technical error and exception messages for the end user to see, is there a way we can configure a generic, user-friendly message (such as "Please contact your system administrator.") to display whenever an error or exception is encountered. The root cause will still be logged, but this will help avoid the end user seeing any ugly, confusing screens.
Is this possible? If so, can you please help me understand how to implement such a solution?
Does this solution address all errors and exceptions returned from the server? Or just errors and exceptions related to authentication? I got the impression that this solution was only related to authentication.
The solutions discussed do not address all errors and exceptions returned from the server. They cover a majority of the errors that you would see from Pega 7. In addition to the article that discusses error.jsp and status.jsp, there is an xmlstatus.jsp as well that you can modify. Unfortunately there is not one place to configure all of this.
The error message "Status as fail and messgae as There has been some issue please contact administrator..." is coming as part of @baseclass • ActivityStatusError Harness which is available rule.
The property used here is pyStatusLabel for status and pyMessageLabel is for message.Create field values for this value and use in the Harness/Section ruleform.
Also ActivityStatusExceptionHandler activity (step2) is setting the respective values to the property (pyStatusLabel,pyMessgaeLabel) ,which is also available rule in case to modify the property values.
This is only for the activity status error scenario.