Can you try the following sample? (Please input non-integer value in a dialog box to occur exception. And it may be better to turn on ContinueOnException for understanding its behavior)
In the above sample, if exception occurs ex variable (out type argument) is set as the Exception in catch block. If no exception occurs, ex variable is Nothing.
So in main, we can check if exception occurs in sub to check content of ex.
if ex is Nothing, there is no exception in sub.
if ex is not Nothing, exception which is ex occurs in sub.
Since main is enclosed in try catch, why the sub flow exception not getting caught by try catch in main?
Because the exception is caught by the TryCatch in sub. If you want to catch it directly by TryCatch in Main, rethrow will help you.