Use the Throw Error component

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:2分
  • Raise an exception during the automation process to indicate something incorrect has occurred by using the Throw Error component in RPA Desktop Design Studio.

    始める前に

    Role required: none

    このタスクについて

    You can configure the properties for the Throw Error component. For more information about these properties, see Properties of the General components.

    手順

    1. In the Toolbox pane, navigate to General > Throw Error.
    2. Drag the Throw Error component to the Design surface.
    3. In the Toolbox pane, navigate to General > Try Catch.
    4. Drag the Try Catch component to the Design surface.
    5. In the Toolbox pane, navigate to General > MessageBox > Show.
    6. Drag the Show component to the Design surface.
    7. オプション: Connect the data and control ports of the Throw Error component to the corresponding ports of the other components as described in the following table and image.
      Port name Purpose of connection Port type Data type
      Exception Type Specify the category of the occurred error.

      For example, Application.

      Data In String
      Message Provide a detailed description of the error, explaining the issue and the suggestion solution.

      For example, "There was an error loading the application. Please try again."

      Data In String
      図 : 1. Throw Error component
      The data and control ports of the Throw Error component connected to the corresponding ports of the other components - Try Catch and Show, on the Design surface.
    8. オプション: To test the component, click Run from the Design tab.
      図 : 2. Throw Error component result
      Output of the Throw Error component.