When to use the Throw or Rethrow activities in UiPath

When to use the Throw or Rethrow activities in UiPath

UiPath Hacks by Gabi Verzea

3 года назад

8,461 Просмотров

This video clarifies the usage of the Throw and Rethrow activities in UiPath, highlights the differences between them, and provides a simple use-case demo for using either of the two activities.

While these activities are probably not used everyday, it comes in handy to know how to use them in your exception handling logic, and they are crucial if you want to design your exception handling in a good, multi-level structure.

00:01 Topic and summary of the video
00:18 UiPath Hacks intro theme
00:42 Exception handling overview
01:25 System Demo of using Throw vs. Rethrow. There are two cascaded Try-Catch blocks.
03:18 The Throw Activity throws a new exception, eg. a business one. A new catch block should be defined for this new exception type.
04:50 The Rethrow Activity throws the SAME exception (don't even have a chance to define a new exception in the properties panel)
06:14 Wrap-up and conclusion

Let us keep in touch:
https://www.linkedin.com/in/gabrielverzea/

Тэги:

#UiPath_Hacks #UiPath #RPA_Development #Throw_Activity_UiPath #Rethrow_Activity_UiPath #Throw_vs._Rethrow #Try-Catch_UiPath #Exception_Handling_UiPath
Ссылки и html тэги не поддерживаются


Комментарии:

Emilia Daian
Emilia Daian - 09.03.2022 12:34

Hello Gabi. Thank you for explanation. It is very useful in understanding how throw and rethrow works. As a quick suggestion would be nice if you can upload the xaml (maybe on uipath forum) so we can replicate your example.

Ответить
Jone Kopir
Jone Kopir - 04.05.2021 23:10

Excellent

Ответить
Gidion manoj kumar
Gidion manoj kumar - 18.03.2021 20:12

Enlightened 💥

Ответить
Ken Chang
Ken Chang - 07.12.2020 07:10

Thanks for another excellent video. Do you have a video or could I request a video to show how to reschedule a job on orchestrator in case of a business or system exception? For example, I have a job that starts at a set time which updates a Excel workbook. If the workbook is open by someone else and I try to do a read range on it I would like to email the person(s) that have the workbook open asking them to exit the workbook and then reschedule the job to start 30 mins later and then abandon trying to run the job after say 3 tries. It doesn't seem like Orchestrator has that as a built-in capability.

Ответить
Ramim animation
Ramim animation - 25.11.2020 12:22

You are very good in this thing

Ответить
Ken Chang
Ken Chang - 11.11.2020 07:25

Excellent work. Thank you for sharing.

Ответить