# Throw

> `System.Activities.Statements.Throw`

`System.Activities.Statements.Throw`

Throws a specified exception. **Throw** signals an error condition at a point in the workflow. The exception propagates up the call stack until it is handled by a surrounding [Try Catch](https://docs.uipath.com/activities/other/latest/workflow/try-catch) activity, or — if uncaught — terminates the workflow.

## Project compatibility

**Windows - Legacy** | **Windows** | **Cross-Platform**

## Properties

### Common

| Parameter | Description |
| --- | --- |
| **DisplayName** | The display name of the activity. |

### Misc

| Parameter | Description |
| --- | --- |
| **Exception** | The exception to throw. Typically uses a `New` expression, for example `New System.InvalidOperationException("Order ID is missing")`. |
| **Private** | When selected, the values of variables and arguments are no longer logged at Verbose level. |

This activity is built by Microsoft. For more information, see [their official documentation](https://learn.microsoft.com/en-us/dotnet/api/system.activities.statements.throw?view=netframework-4.8.1).
