Prevent exception propagation in nested try-catch blocks

I have a workflow composed of nested try-catch blocks, each of which needs to handle different levels of exceptions.

However, when an exception occurs in one of the try-catch blocks, it is automatically propagated to higher blocks, as if the try-catch block in which the exception is actually contained did not exist at all.

I’m running the workflow in “Run File” mode.

How can I prevent exceptions from being propagated to upper try-catch blocks?

@Francesco_Montanaro

Ideally if there is a try catch and the exception is caught…then it would not propagate to top…

Can you please chekc if the exception is caught in the inner try catch blocks

If you can show the workflow that might help

Cheers

1 Like

@Anil_G

To actually test it, I put a “Throw” activity inside the try sequence of the inner try-catch block. But still the exception is propagated to the outher one. :slight_smile:

@Anil_G

Wait, I actully figured out the problem… I was catching the wrong exception type. Sorry, my bad. Now it works :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.