> For the complete documentation index, see [llms.txt](https://docs.flexy.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexy.bot/modules/scripting/steps/throw-exception.md).

# Throw Exception

**Introduction**&#x20;

This step is designed to intentionally stop the execution of the current path in an automation and log an exception message.

**Description**&#x20;

Useful for handling error conditions or specific scenarios where the automation should not proceed further. When executed, this step halts the current path and records the specified exception message.

**Configuration**

* **Message**: Enter the exception message to be logged when this step is executed. This message helps you to identify the reason for halting the automation. The maximum length for the message is 1000 characters.

**Usage**&#x20;

Ideal for error handling in automations, allowing for controlled termination of a path under certain conditions, and providing a clear message for debugging or audit purposes.
