I want to show a custom error message on screen not a system generated error message with global exceptional handler can someone help me to fix this
Hi @imumeriqbal
→ Within the Global Exception Handler workflow, add an activity to display the custom error message. For example, you can use a Message Box activity or a custom-designed user interface element.
→ Configure the activity to display your desired custom error message. You can set the message content dynamically by passing the relevant information from the exception or any other data source.
→ Make sure to place the custom error message activity within the appropriate scope of the Global Exception Handler workflow, depending on where you want the error message to be displayed.
Hope this helps,
Best Regards.
You can use a try catch and throw any error you like in the throw activity
New Exception("Message")
cheers
i did with the same way its shown my custom message also but after this its shows also system generated error
like this is my custom message
when its done than application show system generated error
But I don’t want to show on the screen how I can fix this I just want to use global exceptional handler
any way with only global exceptional handler I don’t want to use try catch
The error is propagated to global exception handler will only handle or rethrow the same error you get…so either the error needs to be modified before or after the global exception handler…that is the reason try catch is proposed
if you use a try catch and use error with global exception handler then becasue of ctch block the previous exception is suppressed and the exception you raise will be displayed
cheers