Definition and Usage
Throw a custom exception to terminate the flow. This command allows you to deliberately raise an exception with a custom message, which can be useful for handling error conditions or stopping automation execution when specific conditions are met.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Exception message | Message shown when the exception is thrown | Any text string | Yes | You can use variables in the message to provide context-specific information |
Variables produced
This action doesn't produce any variables.
Using Variables in Conditions
You can use variables in the exception message by inserting them with the {variableName} syntax. This allows you to include dynamic information in your exception messages, such as:
Current values of counters or variables
Information about the state of the automation
Details about why the exception is being raised
Notes
Use the Raise command when you need to deliberately stop the workflow with a custom error message
This command is useful for creating controlled exits from your automation when certain conditions are met
The exception will terminate the current flow unless it's handled by a Try/Catch block
Consider using this command for validation scenarios where you want to stop processing if critical requirements are not met
The exception message should be descriptive enough to help with troubleshooting