FlowmageDocs

Raise error

Stops the flow with an error message you write.

Settings

SettingWhat it is
Error messageRequiredtext
Error codeShows up in the runs list, the error mail and json.error.code downstream. Defaults to FLOW_ERROR.
Technical details
KeyValue
messagetext
codetext, by default "FLOW_ERROR"

Output

What this node gives depends on the data it gets.

Sample output, and the expression for each field

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "code": "FLOW_ERROR",
    "message": "<error message>"
  },
  "label": "Raise error",
  "type": "core.raiseError",
  "version": 1
}