> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequentum.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Error handling

> Configure how agents respond to errors during command execution, including retry strategies and agent recovery options.

Error handling controls the agent's response when errors occur during execution. Default: exits the command and skips all sub-commands.

## Error handling options

**None:** Agent continues executing sub-commands after an error.

**Exit command:** Agent exits the current command and skips all sub-commands, continuing with the next command.

**Retry command:** Agent retries the command a specified number of times. If unsuccessful, skips all sub-commands and continues with the next command.

Options when "Retry Command" is selected:

* **Max. retries** — Number of retry attempts. Default: 5.
* **Delay between retries (seconds)** — Wait time before retrying.
* **Proxy rotation on retry:**
  * **None** — Proxy does not rotate.
  * **Keep and rotate** — Current proxy stays; new proxy rotates before retry.
  * **Remove and rotate** — Current proxy is removed; new proxy rotates before retry.
  * **Remove and rotate after all retries** — Proxy removed and rotated after all retries.
  * **Rotate pools** — Proxy rotates with each retry.
* **Retry when page not found** — When enabled, retries if page does not load. Default: unchecked.

**Retry command and continue:** Agent retries a specified number of times. If unsuccessful, continues executing sub-commands instead of skipping them.

Options when "Retry Command and Continue" is selected:

* **Max. retries** — Number of retry attempts. Default: 5.
* **Delay between retries (seconds)** — Wait time before retrying.
* **Proxy rotation on retry:**
  * **None** — Proxy does not rotate.
  * **Keep and rotate** — Current proxy stays; new proxy rotates before retry.
  * **Remove and rotate** — Current proxy is removed; new proxy rotates before retry.
  * **Remove and rotate after all retries** — Proxy removed and rotated after all retries.
  * **Rotate pools** — Proxy rotates with each retry.
* **Retry when page not found** — When enabled, retries if page does not load. Default: unchecked.

**Stop agent:** Agent stops if an error occurs.

**Restart agent and retry command:** Agent restarts on error and retries a specified number of times.

Options when "Restart Agent and Retry Command" is selected:

* **Max. retries** — Number of retry attempts. Default: 5.
* **Delay between retries (seconds)** — Wait time before retrying.
* **Proxy rotation on retry:**
  * **None** — Proxy does not rotate.
  * **Keep and rotate** — Current proxy stays; new proxy rotates before retry.
  * **Remove and rotate** — Current proxy is removed; new proxy rotates before retry.
  * **Remove and rotate after all retries** — Proxy removed and rotated after all retries.
  * **Rotate pools** — Proxy rotates with each retry.
* **Retry when page not found** — When enabled, retries if page does not load. Default: unchecked.

**Restart agent and continue:** Agent restarts and continues. Useful if an error leaves the website in a state preventing further progress.

Options when "Restart Agent and Continue" is selected:

* **Max. retries** — Number of retry attempts. Default: 5.
* **Delay between retries (seconds)** — Wait time before retrying.
* **Proxy rotation on retry:**
  * **None** — Proxy does not rotate.
  * **Keep and rotate** — Current proxy stays; new proxy rotates before retry.
  * **Remove and rotate** — Current proxy is removed; new proxy rotates before retry.
  * **Remove and rotate after all retries** — Proxy removed and rotated after all retries.
  * **Rotate pools** — Proxy rotates with each retry.
* **Retry when page not found** — When enabled, retries if page does not load. Default: unchecked.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.