> For the complete documentation index, see [llms.txt](https://docs.roboteasy.tech/studio-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboteasy.tech/studio-en/studio/objetos/blocos-de-comando/throw.md).

# Throw

Object used to cause an error or pass on the encountered error

{% hint style="info" %}
An error caused by Throw can only be caught by the Catch block.
{% endhint %}

## Settings to Throw an Error

![](https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRKcZBCSfHjT8BRPnSe%2F-MYC3AIdbV0SBv4_B17D%2F-MYC4URGEYyoo3Kjy69q%2Fimage.png?alt=media\&token=3291f2fb-9ea0-44c8-98fa-0ecc0f58216a)

| Field   | Description                                                                 |
| ------- | --------------------------------------------------------------------------- |
| Title   | Object Title                                                                |
| Message | Describe the error message or add a variable (example: Error - {variable}). |

## Settings to pass on the error

{% hint style="info" %}
In this case it is only possible if used within a Catch block.
{% endhint %}

![](https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRKcZBCSfHjT8BRPnSe%2F-MYC3AIdbV0SBv4_B17D%2F-MYC4YbxFPglJvFqMiPK%2Fimage.png?alt=media\&token=5c4f0887-9442-4590-a01e-3e648d312a08)

| Field   | Description                                                                                                     |
| ------- | --------------------------------------------------------------------------------------------------------------- |
| Title   | Object Title                                                                                                    |
| Message | It must be left empty so that the robot understands that it needs to pass the error on to the next Catch block. |
