I am wondering can try..catch force execution to go into the catch and run code in there?
try..catch
catch
here example code:
try { if (
Yes, if you throw the exception that you intend to catch from within the try, it will be caught in the catch section.
throw
I have to ask you why you would want to do this though? Exception handling is not meant to be a substitute for control flow.