Manage couple of Business exceptions

Hello guys
First of all thank you all for the replies. this place is an amazing knowledge center for me :slight_smile:

I have a workflow surrounded with try catch that has 3 exit points due to business exception, and each one of them require different actions if appear.
what is the best way to manage it? because the Catch can contain only 1 business exception.

thanks a lot

Hi @liranl , while throwing business exception, provide separate messages for each business exception.
For example, under properties of throw activity, for the parameter ‘Exception’, write:
new BusinessRuleException(“Message1”),
new BusinessRuleException(“Message2”) etc

Then in catch section use switch statement with the expression as Exception.Message

thanks that worked!
I tried to work with arguments but in exception mutable vars are being deleted

will work with the exception message.

1 Like

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