No, I donβt believe that. The catch block will be completed before the final block.
try { // code that may or may not throw an exception } catch { // catch block must exist. finally { SomeCleanupFunctionThatThrows(); // this portion is ran after catch block finishes }
Otherwise, you can add a synchronize () object that will be used by the exception code, which you can check in the finally block to help you determine if an exception is being thrown in a separate thread.
zxcv source share