UiPath Certification UiPath Error Handling and Debugging 1 — Questions and Answers
Question 1: Which UiPath activity is used to catch and handle exceptions during workflow execution?
- Handle Error
- Try Catch (Correct answer)
- On Error Resume
- Error Handler
Correct answer: Try Catch
The Try Catch activity wraps risky code in a Try block and routes caught exceptions to matching Catch handlers or a Finally block.
Question 2: What is the purpose of the 'Throw' activity in UiPath?
- Throws an unhandled exception to crash the robot
- Intentionally raises an exception to signal an error condition (Correct answer)
- Throws a log message to Orchestrator
- Discards the current queue item
Correct answer: Intentionally raises an exception to signal an error condition
The Throw activity programmatically raises a specified exception type, allowing workflows to signal error conditions explicitly.
Question 3: In UiPath debugging, what does a 'Breakpoint' do?
- Stops the robot permanently
- Pauses execution at a specific activity so you can inspect variable values (Correct answer)
- Skips the activity during run
- Marks an activity as failed
Correct answer: Pauses execution at a specific activity so you can inspect variable values
Breakpoints pause workflow execution just before the marked activity, allowing the developer to inspect the current state in the Locals panel.
Question 4: Which UiPath debugging feature allows you to execute the workflow one activity at a time?
- Run
- Step Into (Correct answer)
- Highlight Elements
- Slow Step
Correct answer: Step Into
Step Into (F11) executes one activity at a time and enters invoked workflows to trace each nested step.
Question 5: What is the difference between 'Rethrow' and 'Throw' activities in UiPath?
- They are identical
- Rethrow re-raises the currently caught exception preserving its stack trace; Throw raises a new exception (Correct answer)
- Throw preserves stack trace; Rethrow creates a new exception
- Rethrow can only be used in Global Exception Handler
Correct answer: Rethrow re-raises the currently caught exception preserving its stack trace; Throw raises a new exception
Rethrow is used inside a Catch block to re-raise the same caught exception with its original stack trace intact, while Throw creates a new exception.
Question 6: Which panel in UiPath Studio shows the current value of all variables during a debugging session?
- Output Panel
- Locals Panel (Correct answer)
- Variables Panel
- Watch Panel
Correct answer: Locals Panel
The Locals panel displays all in-scope variables and their current runtime values when execution is paused at a breakpoint.
Which UiPath activity is used to catch and handle exceptions during workflow execution?