Catch exceptions and retry

更新时间:
复制 MD 格式

1. Introduction

Note

Prerequisites: None

Use this component to handle exceptions with try, catch, and finally blocks.

2. Inputs

Note

For information about each input, see the help text for the component in the application flow editor.

3. Outputs

Note

For information about each output, see the help text for the component in the application flow editor.

4. Component example

4.1. Configuration example

  1. For Retry on exception in Try block, select No. This is the default setting.

  2. For the Add finally block setting, select Add finally.

4.2. Example result

None

5. Example flow

Setup flow

  1. Use the Open New Webpage component to open the Taobao homepage.

  2. Use the Catch Exception and Retry component to handle exceptions.

  3. Use the Get Window component to retrieve the window with the title "Baidu".

  4. Use the Get Window component to retrieve the window with the title "Taobao".

  5. Use the Close Webpage component to close the current page.

image

Result

After the flow runs, the results for each node appear in the log panel, as shown in the following figure.