Wrong catch block when throwing BussinesRuleException


I just realized that the catch order isn’t the same as in .NET.
Have a look at the following picture:
I would have expected, that the Exception-cach block would trigger, because its the first one on the top. Instead the BussinesRuleException-catch block was entered.
Is this the normal behavior?


It’s the normal behaviour the catch block catches the specific type of exception first and as you mentioned in throw activity as business exception that’s why the business exception of catch block is executed. First.

In try activity try to generate other than business exception, then it will execute the first block in catch that is system exception.

Not strictly related, but if you were surprised by catch order then this is also a must read:

1 Like