QuestionQ174

VerifiedTesting and Debugging

When an ApplicationException is encountered, what happens if the developer selects InvalidOperationException as the exception handler in the Catches section of the Try Catch activity?

Question Image

Explanation

An InvalidOperationException handler does not catch an ApplicationException, because it is configured to look for a different exception type. The exception is therefore unhandled and terminates the workflow with a runtime error. UiPath specifies that the Finally section executes only when no exception is thrown or when an error is caught in Catches, so it is not executed here.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!