Use the Throw Error component
Raise an exception during the automation process to indicate something incorrect has occurred by using the Throw Error component in RPA Desktop Design Studio.
Before you begin
Role required: none
About this task
You can configure the properties for the Throw Error component. For more information about these properties, see Properties of the General components.
Procedure
-
In the Toolbox pane, navigate to General > Throw Error.
-
Drag the Throw Error component to the Design surface.
-
In the Toolbox pane, navigate to General > Try Catch.
-
Drag the Try Catch component to the Design surface.
-
In the Toolbox pane, navigate to General > MessageBox > Show.
-
Drag the Show component to the Design surface.
-
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 |
-
To test the component, click Run from the Design tab.
[Omitted image "throw-error-comp-result-rpa-studio.png"] Alt text: Output of the Throw Error component.
Parent Topic:General
---
title: Use the Throw Error component
description: Raise an exception during the automation process to indicate something incorrect has occurred by using the Throw Error component in RPA Desktop Design Studio.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/use-general-throw-error.html
release: australia
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [General, Automation components, RPA Desktop Design Studio, Robotic Process Automation \(RPA\) Hub, Workflow Data Fabric]
---
# Use the Throw Error component
Raise an exception during the automation process to indicate something incorrect has occurred by using the Throw Error component in RPA Desktop Design Studio.
## Before you begin
Role required: none
## About this task
You can configure the properties for the Throw Error component. For more information about these properties, see [Properties of the General components](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/Properties-general-components.md).
## Procedure
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.
<table id="table_jnw_jn1_krb"><thead><tr><th>
Port name
</th><th>
Purpose of connection
</th><th>
Port type
</th><th>
Data type
</th></tr></thead><tbody><tr><td>
Exception Type
</td><td>
Specify the category of the occurred error.For example, Application.
</td><td>
Data In
</td><td>
String
</td></tr><tr><td>
Message
</td><td>
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."
</td><td>
Data In
</td><td>
String
</td></tr></tbody>
</table> \[Omitted image "throw-error-comp-rpa-studio.png"\] Alt text: 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.
\[Omitted image "throw-error-comp-result-rpa-studio.png"\] Alt text: Output of the Throw Error component.
**Parent Topic:**[General](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/general-component.md)
| title | Use the Throw Error component |
| description | Raise an exception during the automation process to indicate something incorrect has occurred by using the Throw Error component in RPA Desktop Design Studio. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/integrate-applications/use-general-throw-error.html |
| release | australia |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | GeneralAutomation componentsRPA Desktop Design StudioRobotic Process Automation \(RPA\) HubWorkflow Data Fabric |