Error
caution
Available only in Pipelines of External Objects (entities) operations.
Error is a Pipe for terminating the execution of a synchronous External Object operation Pipeline with an error. It allows you to specify an error code and message that will be displayed in the interface.
Features
- The pipe has no outputs — the event ends immediately after its execution.
params.messagemust be text.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
code | number | No | Error code |
message | string | No | Error message. Supports templating. Cannot be empty if specified |
Possible Errors
- Error processing
params.message— template is invalid or field is not found
Examples
Error with Code
{
"id": 10,
"type": "error",
"params": {
"code": 500
}
}
Error with Code and Text from API Response
{
"id": 10,
"type": "error",
"params": {
"code": 500,
"message": "$in.data.error"
}
}