Change the Order of Catches in Try Catch

I have a Try Catch implemented but am unable to change the order of the Catches that I have implemented.

Also, once implemented, I couldn’t find a way to change caught exception type.

Hello @akhi_s27

Changing the catch order from Studio is not possible from what I know, but you can do it by editing the xaml file directly in (for example) Notepad++. Just find your <TryCatch> node and edit catch order in <TryCatch.Catches>

You can use the same method to modify the exception type.

Before editing xaml: ExceptionOrderChange_before.xaml (9.8 KB)
After editing xaml: ExceptionOrderChange_after.xaml (9.8 KB)

Regards
Tomasz

4 Likes

please follow the tutorial,