Skip to main content
Version: ACE 5

Throw Error Step

Overview

Throw Error step is used to throw custom errors in ACE.

Configuration

  • Error Message required - Text of the error message user wants to throw.
  • Additional properties - Object that contains additional properties to include with the error.

Example

Example Flow
tags: []
sampleInputSchema: ""
sampleData: {}
description: ""
baseFlow: null
steps:
- name: Step throw
description: ""
stepType: throw
condition: ""
config:
error: "Custom error message with value from key testKey: {{testKey}}"
additionalProperties:
key: value
test: "{{test}}"
Input doc
{
"testKey": "custom string",
"test": "value"
}
Flow Result
{
"doc": {
"testKey": "custom string",
"test": "value"
},
"errors": [
{
"error": "Error in flow 'throwError' : Custom error message with value from key testKey: custom string",
"key": "value",
"test": "value"
}
],
"performance": {
"steps": [
{
"step": "Step throw",
"executionTime": 20
}
],
"executionTimeOfFlow": 20,
"timeMetric": "ms"
},
"clearedErrors": [],
"files": []
}