Question
Rulesware LLC
SV
Last activity: 27 Jun 2024 10:42 EDT
How to categorize the errors in the HarnessErrorList
I want to display sepparate sections on pyCaseErrorSection if an X exception happens I want to display the OOTB HarnessErrorList if another type of exception happens I want to display another message.
Is there a way to categorize or identify the type of exception Pega is throwing?
For example a PRRuntime Exception happens, I don't want to show the default Pega message on the pyCaseErrorSection using the HarnessErrorList, instead I want to display a simple text "Please contact admin support".
But how to differentiate between a Pega issue versus a business issue (Pega exception vs Validate in a FlowAction)
Thanks.
@SalvadorC94
I am not sure if there is any specific flag associated with PEGA internal validation but surely for your application level validation, You can add one custom flag. If anything fails on your application level, with the validation message, you can set one flag as a differentiator.
In the case error list section, You can have two layout based on that flag value. If the custom flag has let's say value as "true". you display the application level error otherwise the other layout which shows the common message "Please contact your system administrator"