Try-Catch
Last updated
Was this helpful?
Last updated
Was this helpful?
You can add any building block β or a sequence of multiple building blocks β after the Start Try-Catch block. All of these blocks will be part of the Try-Catch scope.
If an error happens inside this scope, the TaskBot will immediately continue along the On Catch Error path, where you can define how to handle the error.
After either the success path or the error path is completed, the TaskBot will continue along the After Try-Catch path.
If any error (no differentiation) occurs inside a loop, break the loop and continue after the loop.
Different try-catch scopes with different error handling strategies for different building blocks.
Record the error message and handle the error differently depending on the error.
If the TaskBot canβt start its run at all, the error wonβt be caught β even if you wrap the entire workflow in a try-catch block. This usually happens for one of two reasons:
Outdated agent version
Invalid TaskBot set-up