Throw error
Raise an error with a code of your choice, for a Catch (or On error) to handle.
Command in the Core toolkit · id core/throw · 5 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Code | String | Yes | Error code, e.g. BUSINESS.INVOICE_DUPLICATE. | |
| Message | String | No | What went wrong, for the log and the Catch; the code when empty. | |
| Suggested fix | String | No | How to resolve the error. | |
| Details | Dictionary | No | Extra values carried with the error, readable in Catch. | |
| Retryable | Boolean | No | false | Mark the error as temporary so retry policies try the step again. |