# Abort

The block interrupts the execution of the script or generates an error. If the error type "System" is selected, the variable `$SystemException` will also be set. If the error type "Business" is selected, the variable `$BusinessException` will also be set. The SystemException and BusinessException variables are global.

<table data-header-hidden><thead><tr><th width="255" valign="top"></th><th width="310" valign="top"></th></tr></thead><tbody><tr><td valign="top">Generate Error</td><td valign="top"><p>[Text] The specified value will be generated as an error.</p><p>If no value is specified, the script will be interrupted.</p></td></tr><tr><td valign="top">Error Type</td><td valign="top"><p>Select the type of error to be generated. Possible values:</p><ul><li>Default - regular exception;</li><li>System - system exception (the value of the variable <code>$SystemException</code> is set);</li><li>Business - business exception (the value of the variable <code>$BusinessException</code> is set).</li></ul></td></tr><tr><td valign="top">Log to File</td><td valign="top"><p>[Any data type] Numeric, text constant (in quotes), variable name (starting with <code>$</code>), or any expression whose value will be logged during the robot script execution.</p><p>The value can also have a complex data type, such as List, Table, or Dictionary.</p></td></tr><tr><td valign="top">Log to Orchestrator</td><td valign="top">If selected, the text will also be logged to the Orchestrator if the connection to it is active.</td></tr><tr><td valign="top">Screenshot to Orchestrator</td><td valign="top">If selected, a screenshot of the screen will be taken and sent to the Orchestrator if the connection to it is active.</td></tr><tr><td valign="top">Set Status to Failed</td><td valign="top"><p>If enabled, the execution status will be forcibly set to Failed.</p><p>This property works only if the value of the "Generate Error" property is not specified.</p></td></tr><tr><td valign="top">Screenshot File</td><td valign="top">[Text] Returns the full path to the created screenshot file.</td></tr></tbody></table>
