Using Global Exception Handler within REFramework

Hi All,

I tried using Global Exception Handler in a project for which I used the REFramework and I noticed that the GE-Handler is catching and retrying the “Throw BRE’s” I had set up at some points in the process. So my question to you good folks is: "How can I configure the GE-Handler from catching my custom BRE’s?

Thanks.

Hello @afe.araromi

You can always check the type of the error inside the GE handler. “Error” is the argument of exception type as I remember.

So you can add a if activity to check the exception type and omit retrying for business rule exception.

Error.GetType().Name.ToString.Contains(“BusineddRuleException”)

Inside this if activity you can have your retries mentioned

Hope it helps

2 Likes

Hi @Lahiru.Fernando

Thanks for the help.

Like you suggested, I added an IF activity and use the following as the condition…
errorInfo.Exception.GetType().Name.ToString.Contains("BusinessRuleException")
and was able to employ the GEH to treat everything that is not BRE.

Once again, thanks.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.