I was wondering how to properly throw a business exception in the reframework model.
I have the following structure Main<process<List of actions to do. In my list of actions to do, i invoke a workflow (called “Validate Data”) where I validate data nomenclature. In this workflow, I throw an exception using the activity “Throw”, with the input : new BusinessRuleException(“Message”).
It is okay if we use the “Throw” activity, or should we use an assign activity?
We have a try catch in the process xaml AND the main xaml. If we catch a business exception in the process xaml, should I use the “Rethrow” activity or can I use the throw activity again?
Lastly, when should we use a “Throw” activity VS “Assign” activity when we regarding throwing/handling exceptions?