Error Block
Overview»
The Handle Error block is a special core block in Flows that catches and handles errors from blocks where it has been explicitly assigned as an error handler.
Key Characteristics»
Input: Receives error event data to send back responses or trigger recovery flows
Output: Emits error events containing details about what went wrong
Error Event Structure»
When an error occurs, the Handle Error block emits an event with the following structure. Blocks connected downstream of the Handle Error output access it via outputs.<handleErrorBlock>:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
How It Works»
Explicit Assignment: To catch errors from a specific block, you must assign the Handle Error block as that block's error handler in the block's configuration panel. Add a Handle Error block to your flow, then select the block you want to monitor and set its "Error handler" field to your Handle Error block.
Error Routing: When an assigned block throws an error or fails, the Handle Error block receives an error event containing details about the failure.
Error Processing: Connect the Handle Error block's output to other blocks to process errors (e.g., log to Slack, store in memory, send notifications, implement retry logic).
Multiple Assignments: A single Handle Error block can be assigned to multiple blocks throughout your flow, acting as a centralized error handler.

Common Use Cases»
- Error Logging: Connect to an HTTP Request block to send errors to a logging service
- Notifications: Wire to Slack/email to alert on failures
- Retry Logic: Use with Transform + Memory blocks to implement retry mechanisms
- Graceful Degradation: Route errors to alternative processing paths