I have an important subject that I to want bring to your attention.
The case is the following:
We have a sequence (a Main) in which we put a Try Catch.
In the Main-Try we call a subsequence (a Sub).
In the Sub we put another Try Catch.
In the Sub – Try we Throw an exception (a regular exception, doesn’t matter)
In the Sub – Catch we Log the Exception and add a Rethrow .
In the Sun - Finally we put a Log Message!!!
In the Main – Catch we do something… (show the Exception message or something)
In the Main – Finally we do something…
My Questions is this: Why the program doesn’t run de Sub-Finally statement in this case ???
( I have tried to do the same thing in a Main, with a TryCatch and inside it added another Try-Catch and it shows both Finally activities , like it’s supposed to.)
I have attached an example script for better understanding.
Thank you for your reply/help.
TryCatchEx.zip (5.5 KB)