2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【UiPath】Retry Scopeの使い方

Last updated at Posted at 2019-02-25

だいたい正常終了するけど、たまにエラーが発生する。なんて時にRetry Scopeが便利。

retryscopetryecathc.png
テストのためにRetry Scopeの中にThrowを入れて強制的にExceptionを発生させてみる。

catch.png
Catchの中ではログを出してRethrow。

property.png
Propertiesはデフォルトのまま。

  • NumberOfRetries:ループ回数
  • RetryInterval:ループ間の待ち時間

実行結果

log2.png
ログを見ると「エラー発生」が5秒毎に3回出てますね。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?