Just I tried Global exception handler in my project.
whenever any error encountered, after performing a number of retries it will generate a popup, workflow was aborted by the user.
Is it fine if this popup generated in a production machine?
or do I need to suppress that popup?
Global Handler will alway throw exception popup so you may want to use ‘try/catch’, if error occurs it will be catched and in that ‘catch’ you can handle error however you want.
Thanks, @Raghavendraprasad I understood
I can’t achieve retry from try catch.
and one last question, pls tell me how will u do exception handling in your projects
will u put try-catch for each activity?
in my case I put my entire project in one try - catch only in catch block I mentioned exception type as Exception and i am writing exception.message into a excel log file, functionality-wise its working fine but is it a good way or not?
it depends. There are layers (Application, logic, data processing etc in projects) so you can bubble up the exception from whichever workflow that you want to extract the exception.message from using ‘throw’ and re-throw it until you reach the ‘Main’ file.
You can have only one try catch but it is not a best practice because you have no option to trace/debug/log it unless you do it using bubbling.