---
version: "2026.1.0"
language: "en"
---
# Error Handling

The Error Handling building blocks are designed to manage and respond to unexpected failures in Leapwork automation flows, ensuring resilience and traceability across both main flows and subflows.

[Any Error Block](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/error-handling/any-error.md) defines a global error-handling path in a flow or subflow. It activates automatically when a block fails, captures error details, and enables quick navigation to the failed block for troubleshooting.